torsava / rpms / python3

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