Add HAVE_GETHOSTBYNAME_T* (GH PR #29)

This commit is contained in:
Emil Rosenquist 2022-09-01 09:41:47 +02:00 committed by Boris Kolpackov
parent dbeacaffd4
commit 3a081e3697
4 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,16 @@
// HAVE_GETHOSTBYNAME_R : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_GETHOSTBYNAME_R
/* Since Linux/glibc 2.1, SunOS, AIX and HPUX.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \
defined(__SunOS) && defined(__SunOS_5_5) || \
defined(_AIX) || \
defined(__hpux)
# define HAVE_GETHOSTBYNAME_R 1
#endif

View File

@ -0,0 +1,13 @@
// HAVE_GETHOSTBYNAME_R_3_ARG : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_GETHOSTBYNAME_R_3_ARG
/* AIX4, HPUX 10 uses 3 args
*/
#if defined(_AIX) || defined(__hpux)
# define HAVE_GETHOSTBYNAME_R_3_ARG 1
#endif

View File

@ -0,0 +1,13 @@
// HAVE_GETHOSTBYNAME_R_5_ARG : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_GETHOSTBYNAME_R_5_ARG
/* Solaris uses 5 args starting from at latest 5.5 could not find earlier.
*/
#if defined(__SunOS) && defined(__SunOS_5_5)
# define HAVE_GETHOSTBYNAME_R_5_ARG 1
#endif

View File

@ -0,0 +1,13 @@
// HAVE_GETHOSTBYNAME_R_6_ARG : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_GETHOSTBYNAME_R_6_ARG
/* Since Linux/glibc 2.1
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1)
# define HAVE_GETHOSTBYNAME_R_6_ARG 1
#endif