diff --git a/configure b/configure index 4a32d48e713..efcf3adbb93 100755 --- a/configure +++ b/configure @@ -7166,6 +7166,9 @@ cat >>conftest.$ac_ext <<_ACEOF #if HAVE_SYS_SOCKET_H # include #endif + #if HAVE_SYS_SOCKETVAR_H + # include + #endif #include <$ac_header> _ACEOF @@ -7208,9 +7211,6 @@ fi done - #if HAVE_SYS_SOCKETVAR_H - # include - #endif for ac_header in netinet/tcp_var.h diff --git a/configure.ac b/configure.ac index 92c763e11cb..199e2bb96cb 100644 --- a/configure.ac +++ b/configure.ac @@ -281,10 +281,10 @@ AC_CHECK_HEADERS([netinet/in_pcb.h netinet/ip_var.h net/if.h net/if_arp.h net/if [#include #if HAVE_SYS_SOCKET_H # include - #endif]) + #endif #if HAVE_SYS_SOCKETVAR_H # include - #endif + #endif]) AC_CHECK_HEADERS([netinet/tcp_var.h],,, [#include