Fix php5 compilation error (#1427)
authorFlorian Fainelli <florian@openwrt.org>
Sat, 3 Mar 2007 12:26:06 +0000 (12:26 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 3 Mar 2007 12:26:06 +0000 (12:26 +0000)
SVN-Revision: 6476

lang/php5/patches/02-uts_domainname.patch [new file with mode: 0644]

diff --git a/lang/php5/patches/02-uts_domainname.patch b/lang/php5/patches/02-uts_domainname.patch
new file mode 100644 (file)
index 0000000..bb8edad
--- /dev/null
@@ -0,0 +1,12 @@
+diff -urN php-5.0.5/ext/posix/posix.c php-5.0.5.new/ext/posix/posix.c
+--- php-5.0.5/ext/posix/posix.c        2005-06-07 00:06:00.000000000 +0200
++++ php-5.0.5.new/ext/posix/posix.c    2007-03-03 12:14:41.000000000 +0100
+@@ -438,7 +438,7 @@
+       add_assoc_string(return_value, "version",  u.version,  1);
+       add_assoc_string(return_value, "machine",  u.machine,  1);
+ #ifdef _GNU_SOURCE
+-      add_assoc_string(return_value, "domainname", u.domainname, 1);
++      add_assoc_string(return_value, "domainname", u.__domainname, 1);
+ #endif
+ }
+ /* }}} */