Fix IPv6-related (in6.h) checks

This commit is contained in:
Francois Kritzinger 2022-09-12 13:24:32 +02:00
parent 1dd9ac424d
commit 7e52b26c5f
2 changed files with 8 additions and 6 deletions

View File

@ -6,11 +6,11 @@
#undef HAVE_NETINET_IN6_H
/* No decent info...
/* On Linux the IPv6 constructs are defined in netinet/in.h and on FreeBSD
* netinet/in.h includes netinet6/in6.h (note: not netinet/) so the latter
* should not be included directly.
*/
#if defined(__linux__) || \
defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
#if defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_NETINET_IN6_H 1

View File

@ -6,9 +6,11 @@
#undef HAVE_STRUCT_SOCKADDR_IN6
/* Since OpenBSD ~4.2, FreeBSD ~7.0, NetBSD 2.1, Mac OS X 10.6, Windows
/* Since glibc 2.1, OpenBSD ~4.2, FreeBSD ~7.0, NetBSD 2.1, Mac OS X 10.6,
* Windows
*/
#if BUILD2_AUTOCONF_OPENBSD_PREREQ(200705) || \
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(200705) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(7, 0) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(2, 1) || \
BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) || \