From 87c369df54a7c698a5df8e2c1a884831428ca100 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Tue, 23 Jul 2002 02:02:02 +0000 Subject: [PATCH] Include sys/types.h before sys/socket.h. --- configure | 5 ++++- configure.ac | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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]) -- 2.11.4.GIT