]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Remove unused autoconf check: gethostname(3)
authorAlejandro Colomar <alx.manpages@gmail.com>
Thu, 30 Dec 2021 13:50:04 +0000 (14:50 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sat, 15 Jan 2022 14:25:53 +0000 (08:25 -0600)
The macro HAVE_GETHOSTNAME is not being used anywhere.

BTW, the function is defined by SVr4, 4.4BSD, and POSIX.1-2001, so
it's likely that it is always available.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
configure.ac

index 2fa3263330e6b575f86012e62da497382466be2d..1f0993df38fc6dde6f8cb1588e7b7a630f1699d0 100644 (file)
@@ -49,7 +49,7 @@ dnl shadow now uses the libc's shadow implementation
 AC_CHECK_HEADER([shadow.h],,[AC_MSG_ERROR([You need a libc with shadow.h])])
 
 AC_CHECK_FUNCS(arc4random_buf l64a fchmod fchown fsync futimes \
-       gethostname getentropy getrandom getspnam gettimeofday getusershell \
+       getentropy getrandom getspnam gettimeofday getusershell \
        getutent initgroups lchown lckpwdf lstat lutimes \
        setgroups sigaction updwtmp updwtmpx innetgr getpwnam_r \
        getpwuid_r getgrnam_r getgrgid_r getspnam_r getaddrinfo ruserok \