diff options
| author | foobar <sniper@php.net> | 2001-03-20 01:49:56 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2001-03-20 01:49:56 +0000 |
| commit | d16d5eb9f68f7714c780b471299f3cdade5a4591 (patch) | |
| tree | 2845490993c1402c5f59435d89dcce64c886f428 /ext | |
| parent | 3b6a30dd6b259852fb9ab4d13a4e6452be373134 (diff) | |
| download | php-git-d16d5eb9f68f7714c780b471299f3cdade5a4591.tar.gz | |
MFH
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/basic_functions.c | 2 | ||||
| -rw-r--r-- | ext/standard/dns.c | 2 | ||||
| -rw-r--r-- | ext/standard/dns.h | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 5c1080c611..d0c3b6d315 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -247,7 +247,7 @@ function_entry basic_functions[] = { PHP_FE(gethostbyaddr, NULL) PHP_FE(gethostbyname, NULL) PHP_FE(gethostbynamel, NULL) -#if HAVE_LIBBIND && !(defined(__BEOS__)||defined(PHP_WIN32)) +#if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32)) PHP_FE(checkdnsrr, NULL) PHP_FE(getmxrr, second_and_third_args_force_ref) #else diff --git a/ext/standard/dns.c b/ext/standard/dns.c index fc530e1fcf..d9878eaa53 100644 --- a/ext/standard/dns.c +++ b/ext/standard/dns.c @@ -167,7 +167,7 @@ char *php_gethostbyname(char *name) return estrdup(inet_ntoa(in)); } -#if HAVE_LIBBIND && !(defined(__BEOS__)||defined(PHP_WIN32)) +#if HAVE_RES_SEARCH && !(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 */ diff --git a/ext/standard/dns.h b/ext/standard/dns.h index d77e4ea83d..cb0a4eeb57 100644 --- a/ext/standard/dns.h +++ b/ext/standard/dns.h @@ -25,7 +25,8 @@ PHP_FUNCTION(gethostbyaddr); PHP_FUNCTION(gethostbyname); PHP_FUNCTION(gethostbynamel); -#if !defined(PHP_WIN32)||(HAVE_LIBBIND) + +#if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32)) PHP_FUNCTION(checkdnsrr); PHP_FUNCTION(getmxrr); #endif |
