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