Add HAVE_ARPA_INET_H, HAVE_INET_NTOP, HAVE_INET_PTON, HAVE_NETINET_IN_H, HAVE_NETINET_IN6_H, HAVE_NETINET_TCP_H (GH PR #5)

This commit is contained in:
Fred Helmesjö 2022-09-01 08:44:07 +02:00 committed by Boris Kolpackov
parent 905f98df13
commit 53976a10e9
6 changed files with 99 additions and 0 deletions

View File

@ -0,0 +1,16 @@
// HAVE_ARPA_INET_H : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_ARPA_INET_H
/* Since BSD 4.2 (1983) */
#if defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(__GLIBC__) || \
defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_ARPA_INET_H 1
#endif

View File

@ -0,0 +1,16 @@
// HAVE_INET_NTOP : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_INET_NTOP
/* Since BSD 4.2 (1983)
*/
#if defined(__linux__) || \
defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_INET_NTOP 1
#endif

View File

@ -0,0 +1,16 @@
// HAVE_INET_PTON : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_INET_PTON
/* Since BSD 4.2 (1983)
*/
#if defined(__linux__) || \
defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_INET_PTON 1
#endif

View File

@ -0,0 +1,17 @@
// HAVE_NETINET_IN6_H : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_NETINET_IN6_H
/* No decent info...
*/
#if defined(__linux__) || \
defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_NETINET_IN6_H 1
#endif

View File

@ -0,0 +1,17 @@
// HAVE_NETINET_IN_H : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_NETINET_IN_H
/* Since 4.2BSD
*/
#if defined(__linux__) || \
defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_NETINET_IN_H 1
#endif

View File

@ -0,0 +1,17 @@
// HAVE_NETINET_TCP_H : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_NETINET_TCP_H
/* Since 4.2BSD
*/
#if defined(__linux__) || \
defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_NETINET_TCP_H 1
#endif