mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
Force resolution of _res for correct detection.
bz#2259, from sconeu at yahoo.com.
This commit is contained in:
parent
26ad182472
commit
7ad8b287c8
@ -3969,7 +3969,10 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
|||||||
#include <arpa/nameser.h>
|
#include <arpa/nameser.h>
|
||||||
#include <resolv.h>
|
#include <resolv.h>
|
||||||
extern struct __res_state _res;
|
extern struct __res_state _res;
|
||||||
]], [[ ]])],
|
]], [[
|
||||||
|
struct __res_state *volatile p = &_res; /* force resolution of _res */
|
||||||
|
return 0;
|
||||||
|
]],)],
|
||||||
[AC_MSG_RESULT([yes])
|
[AC_MSG_RESULT([yes])
|
||||||
AC_DEFINE([HAVE__RES_EXTERN], [1],
|
AC_DEFINE([HAVE__RES_EXTERN], [1],
|
||||||
[Define if you have struct __res_state _res as an extern])
|
[Define if you have struct __res_state _res as an extern])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user