Blame SOURCES/shadow-4.5-crypt_h.patch

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