torsava / rpms / python3

Forked from rpms/python3 6 years ago
Clone
434d469
diff --git a/Include/Python.h b/Include/Python.h
434d469
index dd595ea5e4c..1feb1531cc9 100644
434d469
--- a/Include/Python.h
434d469
+++ b/Include/Python.h
434d469
@@ -35,6 +35,9 @@
434d469
 #ifdef HAVE_UNISTD_H
434d469
 #include <unistd.h>
434d469
 #endif
434d469
+#ifdef HAVE_CRYPT_H
5ea7bf4
+#include <crypt.h>
5ea7bf4
+#endif
5ea7bf4
 
434d469
 /* For size_t? */
434d469
 #ifdef HAVE_STDDEF_H
5ea7bf4
diff --git a/configure.ac b/configure.ac
434d469
index 03b0f501aff..15ef872a53a 100644
5ea7bf4
--- a/configure.ac
5ea7bf4
+++ b/configure.ac
434d469
@@ -2041,7 +2041,7 @@ dnl AC_MSG_RESULT($cpp_type)
434d469
 
434d469
 # checks for header files
434d469
 AC_HEADER_STDC
434d469
-AC_CHECK_HEADERS(asm/types.h conio.h direct.h dlfcn.h errno.h \
434d469
+AC_CHECK_HEADERS(asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \
ce6ec4f
 fcntl.h grp.h \
ce6ec4f
 ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \
ce6ec4f
 sched.h shadow.h signal.h stropts.h termios.h \
434d469