diff options
author | Stephen van Egmond <svanegmond@php.net> | 2001-02-06 00:07:21 +0000 |
---|---|---|
committer | Stephen van Egmond <svanegmond@php.net> | 2001-02-06 00:07:21 +0000 |
commit | b10273781a4f6b94324ab198d425d09c2e7ef19d (patch) | |
tree | c3ad5a8e7b1e5d856d1d8987f9dea85b8e0d16a1 /ext/standard/dns.c | |
parent | b2067a1839ff3e7366f2d13601b478691da136ba (diff) | |
download | php-git-b10273781a4f6b94324ab198d425d09c2e7ef19d.tar.gz |
Added tests for arpa/*.h and resolv.h which don't exist on the BeOS.
The dns functions on BeOS come from socket.h
Diffstat (limited to 'ext/standard/dns.c')
-rw-r--r-- | ext/standard/dns.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c index d370ce6fa8..c181885319 100644 --- a/ext/standard/dns.c +++ b/ext/standard/dns.c @@ -42,15 +42,21 @@ #include <winsock.h> #else #include <netinet/in.h> +#if HAVE_ARPA_INET_H #include <arpa/inet.h> +#endif #include <netdb.h> #ifdef _OSD_POSIX #undef STATUS #undef T_UNSPEC #endif +#if HAVE_ARPA_NAMESER_H #include <arpa/nameser.h> +#endif +#if HAVE_RESOLV_H #include <resolv.h> #endif +#endif #include "dns.h" |