From: Darren Tucker Date: Fri, 11 Sep 2015 03:11:02 +0000 (+1000) Subject: Force resolution of _res for correct detection. X-Git-Tag: V_7_2_P1~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ad8b287c8453a3e61dbc0d34d467632b8b06fc8;p=thirdparty%2Fopenssh-portable.git Force resolution of _res for correct detection. bz#2259, from sconeu at yahoo.com. --- diff --git a/configure.ac b/configure.ac index 02587e8d7..ec8f50d2d 100644 --- a/configure.ac +++ b/configure.ac @@ -3969,7 +3969,10 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include #include extern struct __res_state _res; - ]], [[ ]])], + ]], [[ +struct __res_state *volatile p = &_res; /* force resolution of _res */ +return 0; + ]],)], [AC_MSG_RESULT([yes]) AC_DEFINE([HAVE__RES_EXTERN], [1], [Define if you have struct __res_state _res as an extern])