mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
- Fix non-windows builds too
This commit is contained in:
parent
ad8c50dfbb
commit
6af0033f7c
1 changed files with 3 additions and 2 deletions
|
@ -278,7 +278,8 @@ static char *php_gethostbyname(char *name)
|
||||||
#define PHP_DNS_ALL (PHP_DNS_A|PHP_DNS_NS|PHP_DNS_CNAME|PHP_DNS_SOA|PHP_DNS_PTR|PHP_DNS_HINFO|PHP_DNS_MX|PHP_DNS_TXT|PHP_DNS_A6|PHP_DNS_SRV|PHP_DNS_NAPTR|PHP_DNS_AAAA)
|
#define PHP_DNS_ALL (PHP_DNS_A|PHP_DNS_NS|PHP_DNS_CNAME|PHP_DNS_SOA|PHP_DNS_PTR|PHP_DNS_HINFO|PHP_DNS_MX|PHP_DNS_TXT|PHP_DNS_A6|PHP_DNS_SRV|PHP_DNS_NAPTR|PHP_DNS_AAAA)
|
||||||
#endif /* HAVE_DNS_FUNCS || defined(PHP_WIN32) */
|
#endif /* HAVE_DNS_FUNCS || defined(PHP_WIN32) */
|
||||||
|
|
||||||
#if !defined(PHP_WIN32) || (HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(NETWARE)))
|
/* Note: These functions are defined in ext/standard/dns_win32.c for Windows! */
|
||||||
|
#if !defined(PHP_WIN32) && (HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(NETWARE)))
|
||||||
|
|
||||||
/* {{{ proto bool dns_check_record(string host [, string type]) U
|
/* {{{ proto bool dns_check_record(string host [, string type]) U
|
||||||
Check DNS records corresponding to a given Internet host name or IP address */
|
Check DNS records corresponding to a given Internet host name or IP address */
|
||||||
|
@ -916,7 +917,7 @@ PHP_FUNCTION(dns_get_mx)
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
#endif /* HAVE_DN_SKIPNAME && HAVE_DN_EXPAND */
|
#endif /* HAVE_DN_SKIPNAME && HAVE_DN_EXPAND */
|
||||||
#endif /* defined(PHP_WIN32) || (HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(NETWARE))) */
|
#endif /* !defined(PHP_WIN32) && (HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(NETWARE))) */
|
||||||
|
|
||||||
#if HAVE_DNS_FUNCS || defined(PHP_WIN32)
|
#if HAVE_DNS_FUNCS || defined(PHP_WIN32)
|
||||||
PHP_MINIT_FUNCTION(dns) {
|
PHP_MINIT_FUNCTION(dns) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue