From ab560941ee45245de86a3e600f3fccae0b370959 Mon Sep 17 00:00:00 2001 From: foobar Date: Fri, 16 Mar 2001 07:13:06 +0000 Subject: [PATCH] This should fix problems in systems without libbind. --- configure.in | 1 + ext/standard/dns.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index c1a96f8c69..a22c290946 100644 --- a/configure.in +++ b/configure.in @@ -389,6 +389,7 @@ putenv \ random \ rand_r \ regcomp \ +res_search \ setitimer \ setlocale \ localeconv \ 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 */ -- 2.50.1