From 45284246617cd0bf7555e12abf763be34b923ef5 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Wed, 19 Jul 2017 17:26:11 +0200 Subject: [PATCH] configure: Improve check for if_nameindex. Signed-off-by: Sebastian Lackner Signed-off-by: Alexandre Julliard --- configure | 3 +++ configure.ac | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configure b/configure index 58d59293d44..c099dba0384 100755 --- a/configure +++ b/configure @@ -16406,6 +16406,9 @@ else #ifdef HAVE_SYS_TYPES_H #include #endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif #ifdef HAVE_NET_IF_H # include #endif 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 #endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif #ifdef HAVE_NET_IF_H # include #endif]],