[2.7] bpo-32635: Fix a segfault when importing the crypt module with libxcrypt. (GH-5284) by miss-islington · Pull Request #5295 · python/cpython

@stratakis @miss-islington

…ypt. (pythonGH-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.
(cherry picked from commit e768c86)

vstinner