From 6dbdc972c4509b4c31577fca0402ad7a6b6e2c5d Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Mon, 28 Oct 2013 14:22:57 +0000 Subject: [PATCH] Fix FTBFS on OS X >=10.7 Need to select a IPv6 sockopt API. --- src/config.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config.h b/src/config.h index 0edc4af..b351a37 100644 --- a/src/config.h +++ b/src/config.h @@ -254,7 +254,10 @@ HAVE_SOCKADDR_SA_LEN #define HAVE_SOCKADDR_SA_LEN /* Define before sys/socket.h is included so we get socklen_t */ #define _BSD_SOCKLEN_T_ - +/* Select the RFC_3542 version of the IPv6 socket API. + Define before netinet6/in6.h is included. */ +#define __APPLE_USE_RFC_3542 + #elif defined(__NetBSD__) #define HAVE_BSD_NETWORK #define HAVE_GETOPT_LONG