termux-packages/packages/python2/Modules-pwdmodule.c.patch

13 lines
512 B
Diff

diff -u -r ../Python-2.7.10/Modules/pwdmodule.c ./Modules/pwdmodule.c
--- ../Python-2.7.10/Modules/pwdmodule.c 2015-05-23 12:09:20.000000000 -0400
+++ ./Modules/pwdmodule.c 2015-09-16 17:42:37.197613340 -0400
@@ -75,7 +75,7 @@
#endif
PyStructSequence_SET_ITEM(v, setIndex++, _PyInt_FromUid(p->pw_uid));
PyStructSequence_SET_ITEM(v, setIndex++, _PyInt_FromGid(p->pw_gid));
-#ifdef __VMS
+#if defined (__VMS) || defined(__ANDROID__)
SETS(setIndex++, "");
#else
SETS(setIndex++, p->pw_gecos);