summaryrefslogtreecommitdiff
path: root/ext/standard/dns.h
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-01-06 20:44:56 +0000
committerPierre Joye <pajoye@php.net>2009-01-06 20:44:56 +0000
commit7844cc38739218e75bda22e2c292d36566d130cc (patch)
tree077b7c9359f11408e2a405e8c1cf634af63e3a79 /ext/standard/dns.h
parent72dad2c9a39e36914c62f2bbf0d7e9674e6d2a42 (diff)
downloadphp-git-7844cc38739218e75bda22e2c292d36566d130cc.tar.gz
- [DOC] add support for all DNS function on Windows
- dns_check_record (and its alias checkdnsrr) - dns_get_record - IPV6 specific info not available yet: . AAAA info is available only on vista/2k8 for now . A6 info is not available - dns_get_mx (and its alias getmxrr)
Diffstat (limited to 'ext/standard/dns.h')
-rw-r--r--ext/standard/dns.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/ext/standard/dns.h b/ext/standard/dns.h
index 3d1a1b21b9..758e8af82a 100644
--- a/ext/standard/dns.h
+++ b/ext/standard/dns.h
@@ -35,21 +35,20 @@ PHP_FUNCTION(gethostbynamel);
PHP_FUNCTION(gethostname);
#endif
-#if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32))
+#if defined(PHP_WIN32) || (HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(NETWARE)))
-PHP_FUNCTION(dns_check_record);
-# if HAVE_DN_SKIPNAME && HAVE_DN_EXPAND
+# if defined(PHP_WIN32) || (HAVE_DN_SKIPNAME && HAVE_DN_EXPAND)
PHP_FUNCTION(dns_get_mx);
+PHP_FUNCTION(dns_check_record);
# endif
-# if HAVE_DNS_FUNCS
-
+#if defined(PHP_WIN32) || HAVE_DNS_FUNCS
PHP_FUNCTION(dns_get_record);
PHP_MINIT_FUNCTION(dns);
-
# endif
-#endif
+
+#endif /* defined(PHP_WIN32) || (HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(NETWARE))) */
#ifndef INT16SZ
#define INT16SZ 2