Blame SOURCES/shadow-4.5-crypt_h.patch

9f13c6
Index: shadow-4.5/configure.ac
9f13c6
===================================================================
9f13c6
--- shadow-4.5.orig/configure.ac
9f13c6
+++ shadow-4.5/configure.ac
9f13c6
@@ -32,9 +32,9 @@ AC_HEADER_STDC
9f13c6
 AC_HEADER_SYS_WAIT
9f13c6
 AC_HEADER_STDBOOL
9f13c6
 
9f13c6
-AC_CHECK_HEADERS(errno.h fcntl.h limits.h unistd.h sys/time.h utmp.h \
9f13c6
-	utmpx.h termios.h termio.h sgtty.h sys/ioctl.h syslog.h paths.h \
9f13c6
-	utime.h ulimit.h sys/resource.h gshadow.h lastlog.h \
9f13c6
+AC_CHECK_HEADERS(crypt.h errno.h fcntl.h limits.h unistd.h sys/time.h \
9f13c6
+	utmp.h utmpx.h termios.h termio.h sgtty.h sys/ioctl.h syslog.h \
9f13c6
+	paths.h utime.h ulimit.h sys/resource.h gshadow.h lastlog.h \
9f13c6
 	locale.h rpc/key_prot.h netdb.h acl/libacl.h attr/libattr.h \
9f13c6
 	attr/error_context.h)
9f13c6
 
9f13c6
Index: shadow-4.5/lib/defines.h
9f13c6
===================================================================
9f13c6
--- shadow-4.5.orig/lib/defines.h
9f13c6
+++ shadow-4.5/lib/defines.h
9f13c6
@@ -4,6 +4,8 @@
9f13c6
 #ifndef _DEFINES_H_
9f13c6
 #define _DEFINES_H_
9f13c6
 
9f13c6
+#include "config.h"
9f13c6
+
9f13c6
 #if HAVE_STDBOOL_H
9f13c6
 # include <stdbool.h>
9f13c6
 #else
9f13c6
@@ -94,6 +96,10 @@ char *strchr (), *strrchr (), *strtok ()
9f13c6
 # include <unistd.h>
9f13c6
 #endif
9f13c6
 
9f13c6
+#if HAVE_CRYPT_H
9f13c6
+# include <crypt.h>		/* crypt(3) may be defined in here */
9f13c6
+#endif
9f13c6
+
9f13c6
 #if TIME_WITH_SYS_TIME
9f13c6
 # include <sys/time.h>
9f13c6
 # include <time.h>