Include sys/types.h before sys/socket.h.
This commit is contained in:
parent
7c099e1f0e
commit
87c369df54
|
@ -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
|
||||
|
||||
|
|
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in New Issue