Index: shadow-4.5/configure.ac =================================================================== --- shadow-4.5.orig/configure.ac +++ shadow-4.5/configure.ac @@ -36,7 +36,7 @@ AC_HEADER_STDC utmpx.h termios.h termio.h sgtty.h sys/ioctl.h syslog.h paths.h \ utime.h ulimit.h sys/capability.h sys/resource.h gshadow.h lastlog.h \ locale.h rpc/key_prot.h netdb.h acl/libacl.h attr/libattr.h \ - attr/error_context.h) + attr/error_context.h crypt.h) dnl shadow now uses the libc's shadow implementation AC_CHECK_HEADER([shadow.h],,[AC_MSG_ERROR([You need a libc with shadow.h])]) Index: shadow-4.5/lib/defines.h =================================================================== --- shadow-4.5.orig/lib/defines.h +++ shadow-4.5/lib/defines.h @@ -4,6 +4,8 @@ #ifndef _DEFINES_H_ #define _DEFINES_H_ +#include "config.h" + #if HAVE_STDBOOL_H # include #else @@ -94,6 +96,10 @@ char *strchr (), *strrchr (), *strtok () # include #endif +#if HAVE_CRYPT_H +# include /* crypt(3) may be defined in here */ +#endif + #if TIME_WITH_SYS_TIME # include # include