Bug 810716 - Detect res_ninit() on DragonFly and FreeBSD. r=ted
authorJan Beich <jbeich@tormail.org>
Tue, 19 Nov 2013 15:42:55 +0100
changeset 156289 9c5256d1d8a74aefc9c72c8a4452358dbe7cc671
parent 156288 ad311f0dd591de0f523ba5d704de4dc654e9d818
child 156290 d316d1dd062efe054d6aa456f380ccb11bcf0aa8
child 156382 ad287f78608abe2cd17bad739ba99e322a1bd616
push id25673
push userryanvm@gmail.com
push dateTue, 19 Nov 2013 18:22:02 +0000
treeherdermozilla-central@d316d1dd062e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs810716
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 810716 - Detect res_ninit() on DragonFly and FreeBSD. r=ted
configure.in
extensions/auth/nsAuthGSSAPI.cpp
js/src/configure.in
--- a/configure.in
+++ b/configure.in
@@ -3100,16 +3100,19 @@ AC_CACHE_CHECK(
     [if test "$OS_TARGET" = NetBSD -o "$OS_TARGET" = OpenBSD; then
         dnl no need for res_ninit() on NetBSD and OpenBSD
         ac_cv_func_res_ninit=no
      else
         AC_TRY_LINK([
             #ifdef linux
             #define _BSD_SOURCE 1
             #endif
+            #include <sys/types.h>
+            #include <netinet/in.h>
+            #include <arpa/nameser.h>
             #include <resolv.h>
             ],
             [int foo = res_ninit(&_res);],
             [ac_cv_func_res_ninit=yes],
             [ac_cv_func_res_ninit=no])
      fi
     ])
 
--- a/extensions/auth/nsAuthGSSAPI.cpp
+++ b/extensions/auth/nsAuthGSSAPI.cpp
@@ -35,16 +35,19 @@ typedef KLStatus (*KLCacheHasValidTicket
     KLPrincipal,
     KLKerberosVersion,
     KLBoolean *,
     KLPrincipal *,
     char **);
 #endif
 
 #if defined(HAVE_RES_NINIT)
+#include <sys/types.h>
+#include <netinet/in.h>
+#include <arpa/nameser.h>
 #include <resolv.h>
 #endif
 
 using namespace mozilla;
 
 //-----------------------------------------------------------------------------
 
 // We define GSS_C_NT_HOSTBASED_SERVICE explicitly since it may be referenced
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -2549,16 +2549,19 @@ AC_CACHE_CHECK(
     [if test "$OS_TARGET" = NetBSD -o "$OS_TARGET" = OpenBSD; then
         dnl no need for res_ninit() on NetBSD and OpenBSD
         ac_cv_func_res_ninit=no
      else
        AC_TRY_LINK([
             #ifdef linux
             #define _BSD_SOURCE 1
             #endif
+            #include <sys/types.h>
+            #include <netinet/in.h>
+            #include <arpa/nameser.h>
             #include <resolv.h>
             ],
             [int foo = res_ninit(&_res);],
             [ac_cv_func_res_ninit=yes],
             [ac_cv_func_res_ninit=no])
      fi
     ])