Skip to content

Commit 9a40695

Browse files
author
Jani Taskinen
committed
MFH: Fix non-windows builds
1 parent 061f229 commit 9a40695

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/standard/dns.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ static char *php_gethostbyname(char *name)
277277
# 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)
278278
#endif /* HAVE_DNS_FUNCS || defined(PHP_WIN32) */
279279

280-
#if !defined(PHP_WIN32) || (HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(NETWARE)))
280+
/* Note: These functions are defined in ext/standard/dns_win32.c for Windows! */
281+
#if !defined(PHP_WIN32) && (HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(NETWARE)))
281282

282283
/* {{{ proto bool dns_check_record(string host [, string type])
283284
Check DNS records corresponding to a given Internet host name or IP address */
@@ -916,7 +917,7 @@ PHP_FUNCTION(dns_get_mx)
916917
}
917918
/* }}} */
918919
#endif /* HAVE_DN_SKIPNAME && HAVE_DN_EXPAND */
919-
#endif /* defined(PHP_WIN32) || (HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(NETWARE))) */
920+
#endif /* defined(PHP_WIN32) && (HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(NETWARE))) */
920921

921922
#if HAVE_DNS_FUNCS || defined(PHP_WIN32)
922923

0 commit comments

Comments
 (0)