diff --git a/configure b/configure index 87e53becbca..b96b12e6ba8 100755 --- a/configure +++ b/configure @@ -11634,7 +11634,10 @@ else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" -#if HAVE_SYS_SOCKET_H +#if HAVE_SYS_TYPES_H + # include + #endif + #if HAVE_SYS_SOCKET_H # include #endif diff --git a/configure.ac b/configure.ac index 91d35057cde..8c2a857bf1f 100644 --- a/configure.ac +++ b/configure.ac @@ -974,7 +974,10 @@ AC_HEADER_STAT() dnl *** Check for net/if.h AC_CHECK_HEADERS(net/if.h,,, - [#if HAVE_SYS_SOCKET_H + [#if HAVE_SYS_TYPES_H + # include + #endif + #if HAVE_SYS_SOCKET_H # include #endif])