From: Peter van Dijk Date: Mon, 8 Oct 2012 06:07:12 +0000 (+0000) Subject: move the OSX source selection support changes to configure, thanks Justin Clift X-Git-Tag: auth-3.2-rc1~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf2898970ad2ded46f625e464a9521d77a93e8c0;p=thirdparty%2Fpdns.git move the OSX source selection support changes to configure, thanks Justin Clift git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2781 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/configure.ac b/configure.ac index 99fba7bcdc..f4cb16c88e 100644 --- a/configure.ac +++ b/configure.ac @@ -146,6 +146,12 @@ linux*) THREADFLAGS="-pthread" CXXFLAGS="-D_GNU_SOURCE $CXXFLAGS" ;; +darwin11* | darwin12*) + AC_DEFINE(HAVE_IPV6,1,[If the host operating system understands IPv6]) + DYNLINKFLAGS="-rdynamic" + LDFLAGS="-pthread $LDFLAGS" + CXXFLAGS="-pthread $CXXFLAGS -D__APPLE_USE_RFC_3542" + ;; *) AC_DEFINE(HAVE_IPV6,1,[If the host operating system understands IPv6]) DYNLINKFLAGS="-rdynamic" diff --git a/pdns/nameserver.cc b/pdns/nameserver.cc index 5d2ab0315d..60195b3f48 100644 --- a/pdns/nameserver.cc +++ b/pdns/nameserver.cc @@ -14,7 +14,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#define __APPLE_USE_RFC_3542 // makes OSX do source selection / destination querying + #include "utility.hh" #include #include