From 4d640a0d2f60ad3266e5e235db7ff0ab7edaf9f1 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Tue, 19 Nov 2013 15:42:55 +0100 Subject: [PATCH] Bug 810716 - Detect res_ninit() on DragonFly and FreeBSD. r=ted --- configure.in | 3 +++ extensions/auth/nsAuthGSSAPI.cpp | 3 +++ js/src/configure.in | 3 +++ 3 files changed, 9 insertions(+) diff --git a/configure.in b/configure.in index fbf2b5e3f0f8..b5f39812ad6f 100644 --- a/configure.in +++ b/configure.in @@ -3105,6 +3105,9 @@ AC_CACHE_CHECK( #ifdef linux #define _BSD_SOURCE 1 #endif + #include + #include + #include #include ], [int foo = res_ninit(&_res);], diff --git a/extensions/auth/nsAuthGSSAPI.cpp b/extensions/auth/nsAuthGSSAPI.cpp index 1308b822fbc2..acfefd8b3073 100644 --- a/extensions/auth/nsAuthGSSAPI.cpp +++ b/extensions/auth/nsAuthGSSAPI.cpp @@ -40,6 +40,9 @@ typedef KLStatus (*KLCacheHasValidTickets_type)( #endif #if defined(HAVE_RES_NINIT) +#include +#include +#include #include #endif diff --git a/js/src/configure.in b/js/src/configure.in index 933d8b74f21c..a5596763dec8 100644 --- a/js/src/configure.in +++ b/js/src/configure.in @@ -2554,6 +2554,9 @@ AC_CACHE_CHECK( #ifdef linux #define _BSD_SOURCE 1 #endif + #include + #include + #include #include ], [int foo = res_ninit(&_res);],