Commit 76dc7b26 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add checks for gethostby{name,addr}_r. Only should be used if

linking with $LTHREAD_LIBS.
parent 514c44a5
This diff is collapsed.
......@@ -646,14 +646,12 @@ int main(argc, argv)
dnl with $LTHREAD_LIBS
dnl
AC_CHECK_FUNCS( \
feof_unlocked \
unlocked_feof \
putc_unlocked \
unlocked_putc \
ftrylockfile \
flockfile \
gmtime_r \
strtok_r \
gmtime_r \
gethostbyaddr_r gethostbyname_r \
feof_unlocked unlocked_feof \
putc_unlocked unlocked_putc \
flockfile ftrylockfile \
)
dnl restore flags
......
......@@ -297,6 +297,12 @@ is provided ``as is'' without express or implied warranty.
/* Define if you have the getdtablesize function. */
#undef HAVE_GETDTABLESIZE
/* Define if you have the gethostbyaddr_r function. */
#undef HAVE_GETHOSTBYADDR_R
/* Define if you have the gethostbyname_r function. */
#undef HAVE_GETHOSTBYNAME_R
/* Define if you have the gethostname function. */
#undef HAVE_GETHOSTNAME
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment