X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/81c330c6f0104aadc07fd584caa33fd0bf6eee79..6a603a10e77f719458939d117e46f7d8ed0b372b:/build/aclocal/ac_raf_func_which_getservbyname_r.m4?ds=sidebyside diff --git a/build/aclocal/ac_raf_func_which_getservbyname_r.m4 b/build/aclocal/ac_raf_func_which_getservbyname_r.m4 index 7ba304ae38..d14fb20d30 100644 --- a/build/aclocal/ac_raf_func_which_getservbyname_r.m4 +++ b/build/aclocal/ac_raf_func_which_getservbyname_r.m4 @@ -23,6 +23,9 @@ AC_DEFUN([AC_raf_FUNC_WHICH_GETSERVBYNAME_R], AC_CACHE_CHECK(how many arguments getservbyname_r() takes, ac_cv_func_which_getservbyname_r, [ + dnl we need to use C++ to detect missing prototypes + AC_LANG_PUSH(C++) + AC_TRY_COMPILE([#include ], [ char *name; @@ -60,6 +63,7 @@ AC_CACHE_CHECK(how many arguments getservbyname_r() takes, ) ] ) + AC_LANG_POP() ] )