diff --git configure.in configure.in index 2084be9..eb6eeb2 100644 --- mozilla/configure.in +++ mozilla/configure.in @@ -3369,14 +3369,19 @@ fi AC_CACHE_CHECK( [for res_ninit()], ac_cv_func_res_ninit, - [AC_TRY_LINK([ + [AC_TRY_RUN([ #ifdef linux #define _BSD_SOURCE 1 #endif + #include + #include + #include #include - ], - [int foo = res_ninit(&_res);], + int main(int argc, char **argv){ + int foo = res_ninit(&_res); + }], [ac_cv_func_res_ninit=yes], + [ac_cv_func_res_ninit=no], [ac_cv_func_res_ninit=no]) ]) diff --git extensions/auth/nsAuthGSSAPI.cpp extensions/auth/nsAuthGSSAPI.cpp index e828beb..6444246 100644 --- mozilla/extensions/auth/nsAuthGSSAPI.cpp +++ mozilla/extensions/auth/nsAuthGSSAPI.cpp @@ -39,6 +39,9 @@ typedef KLStatus (*KLCacheHasValidTickets_type)( #endif #if defined(HAVE_RES_NINIT) +#include +#include +#include #include #endif diff --git js/src/configure.in js/src/configure.in index e25f569..b9722f9 100644 --- mozilla/js/src/configure.in +++ mozilla/js/src/configure.in @@ -2797,14 +2797,19 @@ fi AC_CACHE_CHECK( [for res_ninit()], ac_cv_func_res_ninit, - [AC_TRY_LINK([ + [AC_TRY_RUN([ #ifdef linux #define _BSD_SOURCE 1 #endif + #include + #include + #include #include - ], - [int foo = res_ninit(&_res);], + int main(int argc, char **argv){ + int foo = res_ninit(&_res); + }], [ac_cv_func_res_ninit=yes], + [ac_cv_func_res_ninit=no], [ac_cv_func_res_ninit=no]) ])