From e768c86ef442ef89004089a8a34ce5909ffb90f2 Mon Sep 17 00:00:00 2001 From: stratakis Date: Tue, 23 Jan 2018 16:11:24 +0100 Subject: 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. --- Include/Python.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Include') diff --git a/Include/Python.h b/Include/Python.h index dd595ea5e4..1feb1531cc 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -35,6 +35,9 @@ #ifdef HAVE_UNISTD_H #include #endif +#ifdef HAVE_CRYPT_H +#include +#endif /* For size_t? */ #ifdef HAVE_STDDEF_H -- cgit v1.2.1