36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
|
diff -up shadow-4.8/configure.ac.crypt_h shadow-4.8/configure.ac
|
||
|
--- shadow-4.8/configure.ac.crypt_h 2020-01-13 10:26:17.400481712 +0100
|
||
|
+++ shadow-4.8/configure.ac 2020-01-13 10:29:11.563529093 +0100
|
||
|
@@ -32,7 +32,7 @@ AC_HEADER_STDC
|
||
|
AC_HEADER_SYS_WAIT
|
||
|
AC_HEADER_STDBOOL
|
||
|
|
||
|
-AC_CHECK_HEADERS(errno.h fcntl.h limits.h unistd.h sys/time.h utmp.h \
|
||
|
+AC_CHECK_HEADERS(crypt.h errno.h fcntl.h limits.h unistd.h sys/time.h utmp.h \
|
||
|
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 \
|
||
|
diff -up shadow-4.8/lib/defines.h.crypt_h shadow-4.8/lib/defines.h
|
||
|
--- shadow-4.8/lib/defines.h.crypt_h 2019-07-23 17:26:08.000000000 +0200
|
||
|
+++ shadow-4.8/lib/defines.h 2020-01-13 10:26:17.400481712 +0100
|
||
|
@@ -4,6 +4,8 @@
|
||
|
#ifndef _DEFINES_H_
|
||
|
#define _DEFINES_H_
|
||
|
|
||
|
+#include "config.h"
|
||
|
+
|
||
|
#if HAVE_STDBOOL_H
|
||
|
# include <stdbool.h>
|
||
|
#else
|
||
|
@@ -94,6 +96,10 @@ char *strchr (), *strrchr (), *strtok ()
|
||
|
# include <unistd.h>
|
||
|
#endif
|
||
|
|
||
|
+#if HAVE_CRYPT_H
|
||
|
+# include <crypt.h> /* crypt(3) may be defined in here */
|
||
|
+#endif
|
||
|
+
|
||
|
#if TIME_WITH_SYS_TIME
|
||
|
# include <sys/time.h>
|
||
|
# include <time.h>
|