Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r94494:740ad838d0c5
Date: 2018-05-06 23:09 +0000
http://bitbucket.org/pypy/pypy/changeset/740ad838d0c5/

Log:    Merged in pv/pypy/crypt_h (pull request #611)

        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,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to