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
+9 -1
View File
@@ -20,10 +20,18 @@
#if defined(WIN32) && !defined(WATT32)
#include "nameser.h"
#else
#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
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif