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);],