1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-11-22 01:52:33 +00:00

include header file only when available

This commit is contained in:
Yang Tse
2008-09-15 17:14:29 +00:00
parent 746f3e2942
commit f2582d6949
14 changed files with 114 additions and 6 deletions

View File

@ -18,11 +18,19 @@
#include "setup.h"
#if !defined(WIN32) || defined(WATT32)
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#endif
#include <stdio.h>
#include <stdlib.h>