Add HAVE_SA_FAMILY_T (GH PR #36)

This commit is contained in:
Fred Helmesjö 2022-09-01 09:59:36 +02:00 committed by Boris Kolpackov
parent a6081c13f4
commit 5f1d305468

View File

@ -0,0 +1,18 @@
// HAVE_SA_FAMILY_T : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_SA_FAMILY_T
/* Since Linux/glibc 2.1, OpenBSD >=2.7, FreeBSD >=4.0, NetBSD >=1.5, Mac OS X 10.0
* NOTE: POSIX.1g (2000) specifies this type name for the 'sa_family' member.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(200015) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(4, 0) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \
BUILD2_AUTOCONF_MACOS_PREREQ(10, 0)
# define HAVE_SA_FAMILY_T 1
#endif