--- php-4.3.11/ext/standard/basic_functions.c.orig 2005-07-03 17:35:38 +0000 +++ php-4.3.11/ext/standard/basic_functions.c 2005-07-03 17:35:48 +0000 @@ -447,7 +447,7 @@ function_entry basic_functions[] = { PHP_FE(gethostbyname, NULL) PHP_FE(gethostbynamel, NULL) -#if HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE)) +#if HAVE_RES_SEARCH && HAVE_DN_SKIPNAME && !(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE)) PHP_FE(checkdnsrr, NULL) PHP_FE(getmxrr,second_and_third_args_force_ref) #endif --- php-4.3.11/ext/standard/dns.c.orig 2005-07-03 17:35:20 +0000 +++ php-4.3.11/ext/standard/dns.c 2005-07-03 17:35:26 +0000 @@ -207,7 +207,7 @@ static char *php_gethostbyname(char *nam } /* }}} */ -#if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE)) +#if HAVE_RES_SEARCH && HAVE_DN_SKIPNAME && !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE)) /* {{{ proto int checkdnsrr(string host [, string type]) Check DNS records corresponding to a given Internet host name or IP address */