Define __APPLE_USER_RFC_2292 so the IPv6 socket options are exposed on OSX
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 26 Jun 2014 10:55:12 +0000 (11:55 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 26 Jun 2014 10:55:12 +0000 (11:55 +0100)
configure
configure.ac
src/include/autoconf.h.in

index d695103..8ec93a7 100755 (executable)
--- a/configure
+++ b/configure
@@ -7238,6 +7238,9 @@ case "$host" in
   *-darwin*)
     CFLAGS="$CFLAGS -DDARWIN"
     LIBS="-framework DirectoryService $LIBS"
+
+$as_echo "#define __APPLE_USE_RFC_2292 1" >>confdefs.h
+
     ;;
 esac
 
index ebf1a14..5d6a027 100644 (file)
@@ -890,6 +890,7 @@ case "$host" in
   *-darwin*)
     CFLAGS="$CFLAGS -DDARWIN"
     LIBS="-framework DirectoryService $LIBS"
+    AC_DEFINE([__APPLE_USE_RFC_2292], 1, [Force OSX >= 10.7 Lion to use RFC2292 IPv6 socket options])
     ;;
 esac
 
index 844d48a..26273d8 100644 (file)
 /* Define to 1 if you need to in order for `stat' and other things to work. */
 #undef _POSIX_SOURCE
 
+/* Force OSX >= 10.7 Lion to use RFC2292 IPv6 socket options */
+#undef __APPLE_USE_RFC_2292
+
 /* Define to empty if `const' does not conform to ANSI C. */
 #undef const