mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Add checks for gethostby{name,addr}_r. Only should be used if
linking with $LTHREAD_LIBS.
This commit is contained in:
parent
514c44a5c8
commit
76dc7b2673
3 changed files with 244 additions and 242 deletions
12
configure.in
12
configure.in
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue