]> granicus.if.org Git - php/commitdiff
Added tests for arpa/*.h and resolv.h which don't exist on the BeOS.
authorStephen van Egmond <svanegmond@php.net>
Tue, 6 Feb 2001 00:07:21 +0000 (00:07 +0000)
committerStephen van Egmond <svanegmond@php.net>
Tue, 6 Feb 2001 00:07:21 +0000 (00:07 +0000)
The dns functions on BeOS come from socket.h

ext/standard/dns.c

index d370ce6fa8b704b5d65e71c12973d975d9861cf0..c181885319dce4c1a63fd25a7d53b7e04d6d51d4 100644 (file)
 #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"