configure: Improve check for if_nameindex.

Sebastian Lackner sebastian at fds-team.de
Wed Jul 19 10:26:11 CDT 2017


Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
 configure.ac |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index ab4203cc646..533f1e49342 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2248,6 +2248,9 @@ AC_CACHE_CHECK([for if_nameindex],wine_cv_have_if_nameindex,
                AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
 #ifdef HAVE_NET_IF_H
 # include <net/if.h>
 #endif]],
-- 
2.13.1



More information about the wine-patches mailing list