[pypy-commit] pypy crypt_h: Include crypt.h for crypt() on Linux
pv
pypy.commits at gmail.com
Sun May 6 19:09:50 EDT 2018
Author: Pauli Virtanen <pav at iki.fi>
Branch: crypt_h
Changeset: r94493:32f93d4eabfa
Date: 2018-05-06 22:13 +0200
http://bitbucket.org/pypy/pypy/changeset/32f93d4eabfa/
Log: Include crypt.h for crypt() on Linux
diff --git a/pypy/module/crypt/interp_crypt.py b/pypy/module/crypt/interp_crypt.py
--- a/pypy/module/crypt/interp_crypt.py
+++ b/pypy/module/crypt/interp_crypt.py
@@ -5,6 +5,9 @@
if sys.platform.startswith('darwin'):
eci = ExternalCompilationInfo()
+elif sys.platform.startswith('linux'):
+ # crypt() is defined only in crypt.h on some Linux variants (eg. Fedora 28)
+ eci = ExternalCompilationInfo(libraries=['crypt'], includes=["crypt.h"])
else:
eci = ExternalCompilationInfo(libraries=['crypt'])
c_crypt = rffi.llexternal('crypt', [rffi.CCHARP, rffi.CCHARP], rffi.CCHARP,
More information about the pypy-commit
mailing list