diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2001-01-21 17:29:15 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2001-01-21 17:29:15 +0000 |
commit | 83cf6629ec02f98e7ceca3977709f21c1238c910 (patch) | |
tree | 02e925037834502999bf7b0a8595fae28587e0eb /ext/standard/dns.c | |
parent | 3353ad7e6e757f6e7373b8c78fce7d461e2037aa (diff) | |
download | php-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.c | 8 |
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 */ |