libnghttp2: Update from 1.31.0 to 1.31.1
[termux-packages] / packages / php / ext-posix-posix.c.patch
CommitLineData
da1533a4
FF
1diff -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);
e054b9eb
FF
6 add_assoc_long (return_value, "uid", pw->pw_uid);
7 add_assoc_long (return_value, "gid", pw->pw_gid);
da1533a4
FF
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);
e054b9eb 11+#endif
da1533a4
FF
12 add_assoc_string(return_value, "dir", pw->pw_dir);
13 add_assoc_string(return_value, "shell", pw->pw_shell);
e054b9eb 14 return 1;