mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Do not check for gethostbyname_r versions if we have getaddrinfo
This commit is contained in:
parent
3c8f4e758e
commit
c1260b0e7c
@ -201,6 +201,8 @@ AC_HEADER_TIME
|
||||
dnl Checks for library functions.
|
||||
AC_CHECK_FUNCS(gettimeofday vasprintf fcntl clock_gettime strtok_r strsep getaddrinfo getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getservbyname getprotobynumber setenv unsetenv putenv)
|
||||
|
||||
if test "$ac_cv_func_getaddrinfo" != "yes" ; then
|
||||
|
||||
# Check for gethostbyname_r in all its glorious incompatible versions.
|
||||
# (This is cut-and-pasted from Tor, which based its logic on
|
||||
# Python's configure.in.)
|
||||
@ -257,6 +259,7 @@ AC_CHECK_FUNC(gethostbyname_r, [
|
||||
CFLAGS=$OLD_CFLAGS
|
||||
])
|
||||
|
||||
fi
|
||||
|
||||
AC_CHECK_SIZEOF(long)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user