[62445] trunk/dports/lang/php52

ryandesign at macports.org ryandesign at macports.org
Fri Jan 8 03:14:23 PST 2010


Revision: 62445
          http://trac.macports.org/changeset/62445
Author:   ryandesign at macports.org
Date:     2010-01-08 03:14:19 -0800 (Fri, 08 Jan 2010)
Log Message:
-----------
php52: fix build on Leopard; see #23173

Modified Paths:
--------------
    trunk/dports/lang/php52/Portfile

Added Paths:
-----------
    trunk/dports/lang/php52/files/patch-ext-standard-dns.c.diff

Modified: trunk/dports/lang/php52/Portfile
===================================================================
--- trunk/dports/lang/php52/Portfile	2010-01-08 10:54:35 UTC (rev 62444)
+++ trunk/dports/lang/php52/Portfile	2010-01-08 11:14:19 UTC (rev 62445)
@@ -59,6 +59,7 @@
 patch.pre_args          -p1
 patchfiles \
     patch-scripts-php-config.in.diff \
+    patch-ext-standard-dns.c.diff \
     patch-bind.diff
 
 use_autoconf            yes

Added: trunk/dports/lang/php52/files/patch-ext-standard-dns.c.diff
===================================================================
--- trunk/dports/lang/php52/files/patch-ext-standard-dns.c.diff	                        (rev 0)
+++ trunk/dports/lang/php52/files/patch-ext-standard-dns.c.diff	2010-01-08 11:14:19 UTC (rev 62445)
@@ -0,0 +1,35 @@
+--- a/ext/standard/dns.c	(revision 292278)
++++ b/ext/standard/dns.c	(revision 292467)
+@@ -34,14 +34,14 @@
+ #endif
+ /* located in www.php.net/extra/bindlib.zip */
+ #if HAVE_ARPA_INET_H 
+-#include "arpa/inet.h"
++#include <arpa/inet.h>
+ #endif
+-#include "netdb.h"
++#include <netdb.h>
+ #if HAVE_ARPA_NAMESERV_H
+-#include "arpa/nameser.h"
++#include <arpa/nameser.h>
+ #endif
+ #if HAVE_RESOLV_H
+-#include "resolv.h"
++#include <resolv.h>
+ #endif
+ #endif /* HAVE_LIBBIND */
+ #include <winsock2.h>
+@@ -55,10 +55,10 @@
+ #undef STATUS
+ #undef T_UNSPEC
+ #endif
+-#if HAVE_ARPA_NAMESER_COMPAT_H
+-#include <arpa/nameser_compat.h>
+-#endif
+ #if HAVE_ARPA_NAMESER_H
++#ifdef DARWIN
++# define BIND_8_COMPAT 1
++#endif
+ #include <arpa/nameser.h>
+ #endif
+ #if HAVE_RESOLV_H
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100108/c5caa221/attachment.html>


More information about the macports-changes mailing list