Fix php4 compilation error with utsrelease structure #1422
[openwrt/svn-archive/archive.git] / lang / php4 / patches / 04-uts_domainname.patch
1 diff -urN php-4.3.11/ext/posix/posix.c php-4.3.11.new/ext/posix/posix.c
2 --- php-4.3.11/ext/posix/posix.c 2005-01-28 02:39:42.000000000 +0100
3 +++ php-4.3.11.new/ext/posix/posix.c 2007-02-28 17:11:34.000000000 +0100
4 @@ -533,7 +533,7 @@
5 add_assoc_string(return_value, "version", u.version, 1);
6 add_assoc_string(return_value, "machine", u.machine, 1);
7 #ifdef _GNU_SOURCE
8 - add_assoc_string(return_value, "domainname", u.domainname, 1);
9 + add_assoc_string(return_value, "domainname", u.__domainname, 1);
10 #endif
11 }
12 /* }}} */