summaryrefslogtreecommitdiff
path: root/ext/standard/dns.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-01-21 17:29:15 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-01-21 17:29:15 +0000
commit83cf6629ec02f98e7ceca3977709f21c1238c910 (patch)
tree02e925037834502999bf7b0a8595fae28587e0eb /ext/standard/dns.c
parent3353ad7e6e757f6e7373b8c78fce7d461e2037aa (diff)
downloadphp-git-83cf6629ec02f98e7ceca3977709f21c1238c910.tar.gz
@BeOS patch from svanegmond@bang.dhs.org modified somewhat by Rasmus
BeOS patch from svanegmond@bang.dhs.org modified somewhat by Rasmus
Diffstat (limited to 'ext/standard/dns.c')
-rw-r--r--ext/standard/dns.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c
index 2787e87f4c..d370ce6fa8 100644
--- a/ext/standard/dns.c
+++ b/ext/standard/dns.c
@@ -28,11 +28,17 @@
#define WINNT 1
#endif
/* located in www.php.net/extra/bindlib.zip */
+#if HAVE_ARPA_INET_H
#include "arpa/inet.h"
+#endif
#include "netdb.h"
+#if HAVE_ARPA_NAMESERV_H
#include "arpa/nameser.h"
+#endif
+#if HAVE_RESOLV_H
#include "resolv.h"
#endif
+#endif
#include <winsock.h>
#else
#include <netinet/in.h>
@@ -155,7 +161,7 @@ char *php_gethostbyname(char *name)
return estrdup(inet_ntoa(in));
}
-#if !defined(PHP_WIN32)||HAVE_BINDLIB
+#if HAVE_BINDLIB && !(defined(__BEOS__)||defined(PHP_WIN32))
/* {{{ proto int checkdnsrr(string host [, string type])
Check DNS records corresponding to a given Internet host name or IP address */