1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-05 22:39:39 +00:00

check availability of <netinet/tcp.h>

This commit is contained in:
Yang Tse
2007-09-30 02:12:11 +00:00
parent a0b8ac2bdc
commit 68aa62d76b
2 changed files with 13 additions and 2 deletions

View File

@ -21,14 +21,24 @@
#include "nameser.h"
#else
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
#include <netinet/tcp.h> /* for TCP_NODELAY */
#include <netinet/in.h>
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h> /* <netinet/tcp.h> may need it */
#endif
#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h> /* for TCP_NODELAY */
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_ARPA_NAMESER_COMPAT_H
#include <arpa/nameser_compat.h>
#endif