From 53976a10e9f8f27d1d1d20c6b30513794f2db552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fred=20Helmesj=C3=B6?= Date: Thu, 1 Sep 2022 08:44:07 +0200 Subject: [PATCH] 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) --- .../autoconf/checks/HAVE_ARPA_INET_H.h | 16 ++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_INET_NTOP.h | 16 ++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_INET_PTON.h | 16 ++++++++++++++++ .../autoconf/checks/HAVE_NETINET_IN6_H.h | 17 +++++++++++++++++ .../autoconf/checks/HAVE_NETINET_IN_H.h | 17 +++++++++++++++++ .../autoconf/checks/HAVE_NETINET_TCP_H.h | 17 +++++++++++++++++ 6 files changed, 99 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARPA_INET_H.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INET_NTOP.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INET_PTON.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NETINET_IN6_H.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NETINET_IN_H.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NETINET_TCP_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARPA_INET_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARPA_INET_H.h new file mode 100644 index 0000000..b4c3ff4 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARPA_INET_H.h @@ -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 diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INET_NTOP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INET_NTOP.h new file mode 100644 index 0000000..1628d29 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INET_NTOP.h @@ -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 diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INET_PTON.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INET_PTON.h new file mode 100644 index 0000000..4b9bcad --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INET_PTON.h @@ -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 diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NETINET_IN6_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NETINET_IN6_H.h new file mode 100644 index 0000000..6bc20e4 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NETINET_IN6_H.h @@ -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 diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NETINET_IN_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NETINET_IN_H.h new file mode 100644 index 0000000..cfe823b --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NETINET_IN_H.h @@ -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 diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NETINET_TCP_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NETINET_TCP_H.h new file mode 100644 index 0000000..b2c72d5 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_NETINET_TCP_H.h @@ -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