diff options
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
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([[ | |||
3969 | #include <arpa/nameser.h> | 3969 | #include <arpa/nameser.h> |
3970 | #include <resolv.h> | 3970 | #include <resolv.h> |
3971 | extern struct __res_state _res; | 3971 | extern struct __res_state _res; |
3972 | ]], [[ ]])], | 3972 | ]], [[ |
3973 | struct __res_state *volatile p = &_res; /* force resolution of _res */ | ||
3974 | return 0; | ||
3975 | ]],)], | ||
3973 | [AC_MSG_RESULT([yes]) | 3976 | [AC_MSG_RESULT([yes]) |
3974 | AC_DEFINE([HAVE__RES_EXTERN], [1], | 3977 | AC_DEFINE([HAVE__RES_EXTERN], [1], |
3975 | [Define if you have struct __res_state _res as an extern]) | 3978 | [Define if you have struct __res_state _res as an extern]) |