[openssh-commits] [openssh] 01/01: Force resolution of _res for correct detection.
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Sep 11 13:14:01 AEST 2015
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 7ad8b287c8453a3e61dbc0d34d467632b8b06fc8
Author: Darren Tucker <dtucker at zip.com.au>
Date: Fri Sep 11 13:11:02 2015 +1000
Force resolution of _res for correct detection.
bz#2259, from sconeu at yahoo.com.
---
configure.ac | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 02587e8..ec8f50d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3969,7 +3969,10 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <arpa/nameser.h>
#include <resolv.h>
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])
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list