Commit a7ac3de3 authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Assume that sys/socket.h is available on Unix.

parent e3001b6a
...@@ -494,7 +494,6 @@ AC_CHECK_HEADERS(\ ...@@ -494,7 +494,6 @@ AC_CHECK_HEADERS(\
sys/scsiio.h \ sys/scsiio.h \
sys/shm.h \ sys/shm.h \
sys/signal.h \ sys/signal.h \
sys/socket.h \
sys/socketvar.h \ sys/socketvar.h \
sys/sockio.h \ sys/sockio.h \
sys/statvfs.h \ sys/statvfs.h \
...@@ -551,9 +550,7 @@ AC_CHECK_HEADERS(\ ...@@ -551,9 +550,7 @@ AC_CHECK_HEADERS(\
netipx/ipx.h \ netipx/ipx.h \
sys/un.h \ sys/un.h \
,,,[#include <sys/types.h> ,,,[#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h>
# include <sys/socket.h>
#endif
#ifdef HAVE_SYS_SOCKETVAR_H #ifdef HAVE_SYS_SOCKETVAR_H
# include <sys/socketvar.h> # include <sys/socketvar.h>
#endif #endif
...@@ -575,12 +572,10 @@ AC_CHECK_HEADERS(\ ...@@ -575,12 +572,10 @@ AC_CHECK_HEADERS(\
AC_CHECK_HEADERS([netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h ],,, AC_CHECK_HEADERS([netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h ],,,
[#include <sys/types.h> [#include <sys/types.h>
#include <sys/socket.h>
#ifdef HAVE_ALIAS_H #ifdef HAVE_ALIAS_H
# include <alias.h> # include <alias.h>
#endif #endif
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_SYS_SOCKETVAR_H #ifdef HAVE_SYS_SOCKETVAR_H
# include <sys/socketvar.h> # include <sys/socketvar.h>
#endif #endif
...@@ -614,21 +609,17 @@ AC_CHECK_HEADERS([netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netin ...@@ -614,21 +609,17 @@ AC_CHECK_HEADERS([netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netin
AC_CHECK_HEADERS([linux/ipx.h linux/irda.h linux/rtnetlink.h],,, AC_CHECK_HEADERS([linux/ipx.h linux/irda.h linux/rtnetlink.h],,,
[#include <sys/types.h> [#include <sys/types.h>
#include <sys/socket.h>
#ifdef HAVE_ASM_TYPES_H #ifdef HAVE_ASM_TYPES_H
# include <asm/types.h> # include <asm/types.h>
#endif #endif
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_LINUX_TYPES_H #ifdef HAVE_LINUX_TYPES_H
# include <linux/types.h> # include <linux/types.h>
#endif]) #endif])
AC_CHECK_HEADERS([resolv.h],,, AC_CHECK_HEADERS([resolv.h],,,
[#include <sys/types.h> [#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h>
# include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
# include <netinet/in.h> # include <netinet/in.h>
#endif #endif
...@@ -664,11 +655,9 @@ AC_CHECK_HEADERS([libprocstat.h],,, ...@@ -664,11 +655,9 @@ AC_CHECK_HEADERS([libprocstat.h],,,
[#ifdef HAVE_SYS_PARAM_H [#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> #include <sys/param.h>
#endif #endif
#include <sys/socket.h>
#ifdef HAVE_SYS_QUEUE_H #ifdef HAVE_SYS_QUEUE_H
#include <sys/queue.h> #include <sys/queue.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif]) #endif])
dnl **** Check for working dll **** dnl **** Check for working dll ****
...@@ -2096,9 +2085,7 @@ AC_CHECK_TYPES([request_sense],,,[#include <linux/cdrom.h>]) ...@@ -2096,9 +2085,7 @@ AC_CHECK_TYPES([request_sense],,,[#include <linux/cdrom.h>])
AC_CHECK_TYPES([struct xinpgen],,, AC_CHECK_TYPES([struct xinpgen],,,
[#include <sys/types.h> [#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif
#ifdef HAVE_SYS_SOCKETVAR_H #ifdef HAVE_SYS_SOCKETVAR_H
#include <sys/socketvar.h> #include <sys/socketvar.h>
#endif #endif
...@@ -2179,9 +2166,7 @@ fi ...@@ -2179,9 +2166,7 @@ fi
dnl Check for socket structure members dnl Check for socket structure members
AC_CHECK_MEMBERS([struct msghdr.msg_accrights, struct sockaddr_un.sun_len],,, AC_CHECK_MEMBERS([struct msghdr.msg_accrights, struct sockaddr_un.sun_len],,,
[#include <sys/types.h> [#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h>
# include <sys/socket.h>
#endif
#ifdef HAVE_SYS_UN_H #ifdef HAVE_SYS_UN_H
# include <sys/un.h> # include <sys/un.h>
#endif]) #endif])
...@@ -2264,15 +2249,11 @@ AC_CHECK_MEMBERS([struct icmpstat.icps_inhist],,, ...@@ -2264,15 +2249,11 @@ AC_CHECK_MEMBERS([struct icmpstat.icps_inhist],,,
dnl Check for struct icmpstat.icps_outhist dnl Check for struct icmpstat.icps_outhist
AC_CHECK_MEMBERS([struct icmpstat.icps_outhist],,, AC_CHECK_MEMBERS([struct icmpstat.icps_outhist],,,
[#ifdef HAVE_SYS_TYPES_H [#include <sys/types.h>
#include <sys/types.h> #include <sys/socket.h>
#endif
#ifdef HAVE_ALIAS_H #ifdef HAVE_ALIAS_H
#include <alias.h> #include <alias.h>
#endif #endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_SOCKETVAR_H #ifdef HAVE_SYS_SOCKETVAR_H
#include <sys/socketvar.h> #include <sys/socketvar.h>
#endif #endif
......
...@@ -30,10 +30,7 @@ ...@@ -30,10 +30,7 @@
#include <limits.h> #include <limits.h>
#include <pthread.h> #include <pthread.h>
#include <poll.h> #include <poll.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
#include <netinet/in.h> #include <netinet/in.h>
......
...@@ -24,14 +24,8 @@ ...@@ -24,14 +24,8 @@
#include "config.h" #include "config.h"
#include <stdarg.h> #include <stdarg.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif
#ifdef HAVE_NET_ROUTE_H #ifdef HAVE_NET_ROUTE_H
#include <net/route.h> #include <net/route.h>
......
...@@ -25,11 +25,9 @@ ...@@ -25,11 +25,9 @@
#include "config.h" #include "config.h"
#include <stdarg.h> #include <stdarg.h>
#include <unistd.h> #include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif #include <unistd.h>
#ifdef HAVE_NET_IF_H #ifdef HAVE_NET_IF_H
#include <net/if.h> #include <net/if.h>
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "config.h" #include "config.h"
#include <stdarg.h> #include <stdarg.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h>
#include <dirent.h> #include <dirent.h>
#include <unistd.h> #include <unistd.h>
...@@ -33,10 +34,6 @@ ...@@ -33,10 +34,6 @@
#include <sys/param.h> #include <sys/param.h>
#endif #endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_SOCKETVAR_H #ifdef HAVE_SYS_SOCKETVAR_H
#include <sys/socketvar.h> #include <sys/socketvar.h>
#endif #endif
......
...@@ -25,23 +25,17 @@ ...@@ -25,23 +25,17 @@
#include "config.h" #include "config.h"
#include <stdarg.h> #include <stdarg.h>
#include <stddef.h> #include <stddef.h>
#include <sys/types.h>
#include <sys/socket.h>
#ifdef HAVE_SYS_PARAM_H #ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> #include <sys/param.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SYSCTL_H #ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h> #include <sys/sysctl.h>
#endif #endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_SOCKETVAR_H #ifdef HAVE_SYS_SOCKETVAR_H
#include <sys/socketvar.h> #include <sys/socketvar.h>
#endif #endif
......
...@@ -48,9 +48,7 @@ ...@@ -48,9 +48,7 @@
#ifdef HAVE_SYS_SYSCALL_H #ifdef HAVE_SYS_SYSCALL_H
# include <sys/syscall.h> # include <sys/syscall.h>
#endif #endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif
#ifdef HAVE_SYS_TIME_H #ifdef HAVE_SYS_TIME_H
# include <sys/time.h> # include <sys/time.h>
#endif #endif
......
...@@ -33,9 +33,7 @@ ...@@ -33,9 +33,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif
#ifdef HAVE_SYS_TIME_H #ifdef HAVE_SYS_TIME_H
# include <sys/time.h> # include <sys/time.h>
#endif #endif
......
...@@ -44,9 +44,7 @@ ...@@ -44,9 +44,7 @@
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/mman.h> #include <sys/mman.h>
#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h>
# include <sys/socket.h>
#endif
#ifdef HAVE_SYS_WAIT_H #ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h> #include <sys/wait.h>
#endif #endif
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "config.h" #include "config.h"
#include <errno.h> #include <errno.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h> #include <unistd.h>
#ifdef HAVE_IFADDRS_H #ifdef HAVE_IFADDRS_H
# include <ifaddrs.h> # include <ifaddrs.h>
...@@ -35,9 +36,6 @@ ...@@ -35,9 +36,6 @@
#ifdef HAVE_SYS_IOCTL_H #ifdef HAVE_SYS_IOCTL_H
# include <sys/ioctl.h> # include <sys/ioctl.h>
#endif #endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
# define __APPLE_USE_RFC_3542 # define __APPLE_USE_RFC_3542
# include <netinet/in.h> # include <netinet/in.h>
......
...@@ -33,9 +33,7 @@ ...@@ -33,9 +33,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <signal.h> #include <signal.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h>
# include <sys/socket.h>
#endif
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/mman.h> #include <sys/mman.h>
#ifdef HAVE_SYS_SYSINFO_H #ifdef HAVE_SYS_SYSINFO_H
......
...@@ -29,9 +29,7 @@ ...@@ -29,9 +29,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <dlfcn.h> #include <dlfcn.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif
#ifdef HAVE_SYS_UN_H #ifdef HAVE_SYS_UN_H
#include <sys/un.h> #include <sys/un.h>
#endif #endif
......
...@@ -32,9 +32,7 @@ ...@@ -32,9 +32,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h>
# include <sys/socket.h>
#endif
#ifdef HAVE_NETDB_H #ifdef HAVE_NETDB_H
# include <netdb.h> # include <netdb.h>
#endif #endif
......
...@@ -679,9 +679,6 @@ ...@@ -679,9 +679,6 @@
/* Define to 1 if you have the <sys/socketvar.h> header file. */ /* Define to 1 if you have the <sys/socketvar.h> header file. */
#undef HAVE_SYS_SOCKETVAR_H #undef HAVE_SYS_SOCKETVAR_H
/* Define to 1 if you have the <sys/socket.h> header file. */
#undef HAVE_SYS_SOCKET_H
/* Define to 1 if you have the <sys/sockio.h> header file. */ /* Define to 1 if you have the <sys/sockio.h> header file. */
#undef HAVE_SYS_SOCKIO_H #undef HAVE_SYS_SOCKIO_H
......
...@@ -34,9 +34,7 @@ ...@@ -34,9 +34,7 @@
#ifdef HAVE_SYS_IOCTL_H #ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h> #include <sys/ioctl.h>
#endif #endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif
#ifdef HAVE_SYS_FILIO_H #ifdef HAVE_SYS_FILIO_H
#include <sys/filio.h> #include <sys/filio.h>
#endif #endif
......
...@@ -31,9 +31,7 @@ ...@@ -31,9 +31,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h>
# include <sys/socket.h>
#endif
#include <unistd.h> #include <unistd.h>
#include <poll.h> #include <poll.h>
#ifdef HAVE_SYS_PARAM_H #ifdef HAVE_SYS_PARAM_H
......
...@@ -34,9 +34,7 @@ ...@@ -34,9 +34,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h>
# include <sys/socket.h>
#endif
#ifdef HAVE_SYS_WAIT_H #ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h> # include <sys/wait.h>
#endif #endif
......
...@@ -42,9 +42,7 @@ ...@@ -42,9 +42,7 @@
#include <poll.h> #include <poll.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h>
# include <sys/socket.h>
#endif
#ifdef HAVE_SYS_IOCTL_H #ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h> #include <sys/ioctl.h>
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment