chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / packages / php / ext-posix-posix.c.patch
1 diff -u -r ../php-7.1.0RC3/ext/posix/posix.c ./ext/posix/posix.c
2 --- ../php-7.1.0RC3/ext/posix/posix.c   2016-09-28 22:15:45.000000000 -0400
3 +++ ./ext/posix/posix.c 2016-10-03 08:39:39.009354865 -0400
4 @@ -1163,7 +1163,10 @@
5         add_assoc_string(return_value, "passwd",    pw->pw_passwd);
6         add_assoc_long  (return_value, "uid",       pw->pw_uid);
7         add_assoc_long  (return_value, "gid",           pw->pw_gid);
8 +#if !defined(__ANDROID__) || defined(__LP64__)
9 +       /* Only 64-bit Android has the pw_gecos field. */
10         add_assoc_string(return_value, "gecos",     pw->pw_gecos);
11 +#endif
12         add_assoc_string(return_value, "dir",       pw->pw_dir);
13         add_assoc_string(return_value, "shell",     pw->pw_shell);
14         return 1;