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]],