]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Assume <unistd.h> exists
authorAlejandro Colomar <alx@kernel.org>
Fri, 2 Dec 2022 20:39:15 +0000 (21:39 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 15 Dec 2022 22:22:05 +0000 (16:22 -0600)
It is required by POSIX.1-2001.

Cc: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
configure.ac
lib/defines.h

index 94a37472c54ea78692a6fed542a667739ed9e133..1f93cd29f8a097f5c05152f6f5ecf4d20e432c34 100644 (file)
@@ -36,7 +36,7 @@ LT_INIT
 dnl Checks for libraries.
 
 dnl Checks for header files.
-AC_CHECK_HEADERS(crypt.h unistd.h sys/time.h utmp.h \
+AC_CHECK_HEADERS(crypt.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/random.h sys/resource.h \
        gshadow.h lastlog.h rpc/key_prot.h netdb.h acl/libacl.h \
index 1cfc537bea0add490a8d3b12545d2cddac24963f..db3adb3f874b36b9314f1c777e9ac73e22d1c786 100644 (file)
@@ -46,9 +46,7 @@ extern char * textdomain (const char * domainname);
 #include <sys/types.h>
 #include <sys/wait.h>
 
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 /*
  * crypt(3), crypt_gensalt(3), and their