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