Blame SOURCES/shadow-4.5-crypt_h.patch

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