From: Michael Graff Date: Tue, 26 Jul 2011 21:59:13 +0000 (+0000) Subject: fix for compiling on OSX Lion. Verified it compiles on Snow Leopard using older... X-Git-Tag: v9.9.0a1~70 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=ab3aeba682460fd39deb7901aa69f976583c9f47;p=thirdparty%2Fbind9.git fix for compiling on OSX Lion. Verified it compiles on Snow Leopard using older XCode as well. --- diff --git a/configure.in b/configure.in index 2aef3b0d140..6d55410e871 100644 --- a/configure.in +++ b/configure.in @@ -18,7 +18,7 @@ AC_DIVERT_PUSH(1)dnl esyscmd([sed "s/^/# /" COPYRIGHT])dnl AC_DIVERT_POP()dnl -AC_REVISION($Revision: 1.527 $) +AC_REVISION($Revision: 1.528 $) AC_INIT(lib/dns/name.c) AC_PREREQ(2.59) @@ -267,6 +267,14 @@ case "$host" in STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE" CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" ;; + # + # Starting with OSX 10.7 (Lion) we must choose which IPv6 API to use. + # Setting this is sufficient to select the correct behavior for BIND 9. + # + *-darwin*) + STD_CDEFINES="$STD_CDEFINES -D__APPLE_USE_RFC_3542" + CPPFLAGS="$CPPFLAGS -D__APPLE_USE_RFC_3542" + ;; esac AC_HEADER_STDC