Fix build when libbind is present.

PR:		ports/82024
Submitted by:	Edwin Culp <eculp@bafirst.com>
This commit is contained in:
Alex Dupre 2005-06-19 10:12:14 +00:00
parent 9c4e814c7e
commit 2d8f23f015
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=137719
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- ext/standard/dns.h.orig Sun Jun 19 11:57:31 2005
+++ ext/standard/dns.h Sun Jun 19 12:03:37 2005
@@ -25,6 +25,10 @@
#if HAVE_RES_NMKQUERY && HAVE_RES_NSEND && HAVE_DN_EXPAND && HAVE_DN_SKIPNAME
#define HAVE_DNS_FUNCS 1
+#define res_ninit __res_ninit
+#define res_nmkquery __res_nmkquery
+#define res_nsend __res_nsend
+#define res_nclose __res_nclose
#endif
PHP_FUNCTION(gethostbyaddr);

View File

@ -0,0 +1,13 @@
--- ext/standard/dns.h.orig Sun Jun 19 11:57:31 2005
+++ ext/standard/dns.h Sun Jun 19 12:03:37 2005
@@ -25,6 +25,10 @@
#if HAVE_RES_NMKQUERY && HAVE_RES_NSEND && HAVE_DN_EXPAND && HAVE_DN_SKIPNAME
#define HAVE_DNS_FUNCS 1
+#define res_ninit __res_ninit
+#define res_nmkquery __res_nmkquery
+#define res_nsend __res_nsend
+#define res_nclose __res_nclose
#endif
PHP_FUNCTION(gethostbyaddr);