branch Attitude Adjustment packages
[12.09/packages.git] / lang / php4 / patches / 003-dns_skipname.patch
1 --- a/ext/standard/basic_functions.c
2 +++ b/ext/standard/basic_functions.c
3 @@ -436,7 +436,7 @@ function_entry basic_functions[] = {
4         PHP_FE(gethostbyname,                                                                                                   NULL)
5         PHP_FE(gethostbynamel,                                                                                                  NULL)
6  
7 -#if HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE))
8 +#if HAVE_RES_SEARCH && HAVE_DN_SKIPNAME && !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE))
9         PHP_FE(checkdnsrr,                                                                                                              NULL)
10         PHP_FE(getmxrr,second_and_third_args_force_ref)
11  #endif
12 --- a/ext/standard/dns.c
13 +++ b/ext/standard/dns.c
14 @@ -207,7 +207,7 @@ static char *php_gethostbyname(char *nam
15  }
16  /* }}} */
17  
18 -#if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE))
19 +#if HAVE_RES_SEARCH && HAVE_DN_SKIPNAME && !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE))
20  
21  /* {{{ proto int checkdnsrr(string host [, string type])
22     Check DNS records corresponding to a given Internet host name or IP address */