summaryrefslogtreecommitdiff
path: root/ext/standard/dns.c
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2000-05-27 19:27:20 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2000-05-27 19:27:20 +0000
commitfb39eda0d80f0b45cbdf17c9b898298f90f4812b (patch)
treeab06cab4b0a4e2e433daad1be9fd5f3aa28973aa /ext/standard/dns.c
parentafccb5861212d0931fcf61ef8f4e4141700025f2 (diff)
downloadphp-git-fb39eda0d80f0b45cbdf17c9b898298f90f4812b.tar.gz
a second (cleaner?) try on warnings about unsupported functions
Diffstat (limited to 'ext/standard/dns.c')
-rw-r--r--ext/standard/dns.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c
index 6bad85efbf..8e481af1cd 100644
--- a/ext/standard/dns.c
+++ b/ext/standard/dns.c
@@ -159,12 +159,12 @@ char *php_gethostbyname(char *name)
return estrdup(inet_ntoa(in));
}
+#if !defined(PHP_WIN32)||HAVE_BINDLIB
/* {{{ proto int checkdnsrr(string host [, string type])
Check DNS records corresponding to a given Internet host name or IP address */
PHP_FUNCTION(checkdnsrr)
{
-#if !defined(PHP_WIN32)||HAVE_BINDLIB
pval **arg1,**arg2;
int type,i;
#ifndef MAXPACKET
@@ -206,14 +206,9 @@ PHP_FUNCTION(checkdnsrr)
RETURN_FALSE;
}
RETURN_TRUE;
-#else
- PHP_NOT_IN_THIS_BUILD();
-#endif
}
/* }}} */
-#if !defined(PHP_WIN32)||HAVE_BINDLIB
-
#ifndef HFIXEDSZ
#define HFIXEDSZ 12 /* fixed data in header <arpa/nameser.h> */
#endif /* HFIXEDSZ */
@@ -225,13 +220,11 @@ PHP_FUNCTION(checkdnsrr)
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 256
#endif /* MAXHOSTNAMELEN */
-#endif
/* {{{ proto int getmxrr(string hostname, array mxhosts [, array weight])
Get MX records corresponding to a given Internet host name */
PHP_FUNCTION(getmxrr)
{
-#if !defined(PHP_WIN32)||HAVE_BINDLIB
pval *host, *mx_list, *weight_list;
int need_weight = 0;
int count,qdc;
@@ -314,12 +307,10 @@ PHP_FUNCTION(getmxrr)
}
}
RETURN_TRUE;
-#else
- PHP_NOT_IN_THIS_BUILD();
-#endif
}
/* }}} */
+#endif
/*
* Local variables:
* tab-width: 4