Compilation fix for MacOS.

Thanks to Pal Lockheart <ex@palx.org> for the original patch.
This commit is contained in:
Simon Kelley
2019-08-22 23:23:29 +01:00
parent 248efe8410
commit e198fe833a

View File

@@ -273,11 +273,16 @@ HAVE_SOCKADDR_SA_LEN
#define HAVE_BSD_NETWORK #define HAVE_BSD_NETWORK
#define HAVE_GETOPT_LONG #define HAVE_GETOPT_LONG
#define HAVE_SOCKADDR_SA_LEN #define HAVE_SOCKADDR_SA_LEN
#define NO_IPSET
/* Define before sys/socket.h is included so we get socklen_t */ /* Define before sys/socket.h is included so we get socklen_t */
#define _BSD_SOCKLEN_T_ #define _BSD_SOCKLEN_T_
/* Select the RFC_3542 version of the IPv6 socket API. /* Select the RFC_3542 version of the IPv6 socket API.
Define before netinet6/in6.h is included. */ Define before netinet6/in6.h is included. */
#define __APPLE_USE_RFC_3542 #define __APPLE_USE_RFC_3542
/* Required for Mojave. */
#ifndef SOL_TCP
# define SOL_TCP IPPROTO_TCP
#endif
#define NO_IPSET #define NO_IPSET
#elif defined(__NetBSD__) #elif defined(__NetBSD__)