Include sys/types.h before sys/socket.h.

This commit is contained in:
Gerald Pfeifer 2002-07-23 02:02:02 +00:00 committed by Alexandre Julliard
parent 7c099e1f0e
commit 87c369df54
2 changed files with 8 additions and 2 deletions

5
configure vendored
View File

@ -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 <sys/types.h>
#endif
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif

View File

@ -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 <sys/types.h>
#endif
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif])