Bruno Jesus : configure: Make FreeBSD recognize struct __res_state for iphlpapi.
Alexandre Julliard
julliard at winehq.org
Thu Feb 9 15:54:27 CST 2017
Module: wine
Branch: master
Commit: 2f447bb49c794058e71bf5bd43a3c53147260226
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2f447bb49c794058e71bf5bd43a3c53147260226
Author: Bruno Jesus <00cpxxx at gmail.com>
Date: Thu Feb 9 14:59:11 2017 -0200
configure: Make FreeBSD recognize struct __res_state for iphlpapi.
Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
configure | 8 +++++++-
configure.ac | 8 +++++++-
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 1cac4e0..a7e350e 100755
--- a/configure
+++ b/configure
@@ -16711,7 +16711,13 @@ _ACEOF
fi
-ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
+ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif
"
diff --git a/configure.ac b/configure.ac
index cae8d72..413bfc9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2347,7 +2347,13 @@ AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_scope_id],,,
dnl Check for struct __res_state
AC_CHECK_TYPES([struct __res_state],,,
-[#ifdef HAVE_RESOLV_H
+[#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif])
More information about the wine-cvs
mailing list