diff options
author | stratakis <cstratak@redhat.com> | 2018-01-23 16:11:24 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2018-01-23 16:11:24 +0100 |
commit | e768c86ef442ef89004089a8a34ce5909ffb90f2 (patch) | |
tree | d332469497ed5a11fb27db5c7dce129544766476 /pyconfig.h.in | |
parent | 370d04d1dcca50a52d59f40aff4d11434f71df6b (diff) | |
download | cpython-git-e768c86ef442ef89004089a8a34ce5909ffb90f2.tar.gz |
bpo-32635: Fix a segfault when importing the crypt module with libxcrypt. (#5284)
glibc is deprecating libcrypt in favor of libxcrypt, however python assumes
that crypt.h will always be included. This change makes the header inclusion
explicit when libxcrypt is present on the system.
Diffstat (limited to 'pyconfig.h.in')
-rw-r--r-- | pyconfig.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in index dd7c62bad1..fd5a0c38d8 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -140,6 +140,9 @@ /* Define to 1 if you have the `copysign' function. */ #undef HAVE_COPYSIGN +/* Define to 1 if you have the <crypt.h> header file. */ +#undef HAVE_CRYPT_H + /* Define to 1 if you have the `ctermid' function. */ #undef HAVE_CTERMID |