summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-01-24 09:51:39 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2018-01-24 09:51:39 (GMT)
commit6ccdad7b1f6fb316e4e85aa1eba8fbdc3169741e (patch)
treee9e40a0dc454e368e22d2088ab0cf171972af85f /configure.ac
parent8ca036d4716fc86ff42474ba35d3cd32f0188a15 (diff)
downloadcpython-6ccdad7b1f6fb316e4e85aa1eba8fbdc3169741e.zip
cpython-6ccdad7b1f6fb316e4e85aa1eba8fbdc3169741e.tar.gz
cpython-6ccdad7b1f6fb316e4e85aa1eba8fbdc3169741e.tar.bz2
bpo-32635: Fix a segfault when importing the crypt module with libxcrypt. (GH-5284) (#5295)
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. (cherry picked from commit e768c86ef442ef89004089a8a34ce5909ffb90f2)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7243de2..c645340 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1690,7 +1690,7 @@ dnl AC_MSG_RESULT($cpp_type)
# checks for header files
AC_HEADER_STDC
-AC_CHECK_HEADERS(asm/types.h conio.h direct.h dlfcn.h errno.h \
+AC_CHECK_HEADERS(asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \
fcntl.h grp.h \
ieeefp.h io.h langinfo.h libintl.h poll.h process.h pthread.h \
shadow.h signal.h stdint.h stropts.h termios.h thread.h \