[PATCH] configure.ac: Make FreeBSD recognize struct __res_state for iphlpapi

Bruno Jesus 00cpxxx at gmail.com
Thu Feb 9 10:59:11 CST 2017


It supports it, but the current tests fail due to missing headers.

Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
---
 configure.ac | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index c6d63b2..cfe9b5e 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])
 
-- 
2.9.3




More information about the wine-patches mailing list