Commit 5d1a6385 authored by Hidenori Takeshima's avatar Hidenori Takeshima Committed by Alexandre Julliard

Added checking for netdb.h.

Don't include arpa/inet.h and sys/socket.h if system doesn't have these headers.
parent 470acf83
......@@ -753,6 +753,7 @@ AC_CHECK_HEADERS(\
linux/joystick.h \
linux/ucdrom.h \
net/if.h \
netdb.h \
netinet/in.h \
netinet/tcp.h \
pty.h \
......
......@@ -25,7 +25,9 @@
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#include <netinet/in_systm.h>
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
......
......@@ -11,6 +11,7 @@
#include <string.h>
#include <time.h>
#include "config.h"
#include "windows.h"
#include "wininet.h"
#include "winerror.h"
......
......@@ -66,7 +66,9 @@
#ifdef HAVE_SYS_ERRNO_H
#include <sys/errno.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#include <unistd.h>
#include <stdlib.h>
#ifdef HAVE_ARPA_NAMESER_H
......
......@@ -63,7 +63,9 @@
#ifdef HAVE_SYS_ERRNO_H
#include <sys/errno.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#include <unistd.h>
#include <stdlib.h>
#ifdef HAVE_ARPA_NAMESER_H
......
......@@ -335,6 +335,9 @@
/* Define if you have the <net/if.h> header file. */
#undef HAVE_NET_IF_H
/* Define if you have the <netdb.h> header file. */
#undef HAVE_NETDB_H
/* Define if you have the <netinet/in.h> header file. */
#undef HAVE_NETINET_IN_H
......
......@@ -24,11 +24,17 @@
#define TRANSPARENT 1
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif /* HAVE_ARPA_INET_H */
#include <sys/time.h>
#include <fcntl.h>
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif /* HAVE_NETDB_H */
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif /* HAVE_SYS_SOCKET_H */
#include <sys/ioctl.h>
#endif /* RC_INVOKED */
......
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