From 66cf4fbe4afc34a94603cf420ef3d50baceb5dab Mon Sep 17 00:00:00 2001 From: david Date: Sun, 18 Sep 2011 05:11:25 +0000 Subject: [PATCH] Define __APPLE_USE_RFC_3542. Since OS X 10.7, we must declare whether we want the IPv6 sockets API to work like RFC 2292 or RFC 3542. As far as I know, we are compatible with both, so just pick the more recent one, which Apple says will become the default in the future. --- libnetutil/netutil.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libnetutil/netutil.cc b/libnetutil/netutil.cc index 9725ff6df..1a2893735 100644 --- a/libnetutil/netutil.cc +++ b/libnetutil/netutil.cc @@ -87,6 +87,10 @@ * * ***************************************************************************/ +/* Since OS X 10.7, we must declare whether we expect RFC 2292 or RFC 3542 + behavior from . */ +#define __APPLE_USE_RFC_3542 + #if HAVE_CONFIG_H #include "../nmap_config.h" #endif