lbry-android/recipes/python2/patches/fix-pwdmodule.patch

11 lines
454 B
Diff
Raw Normal View History

2017-08-13 03:24:00 +02:00
--- Python-2.7.13/Modules/pwdmodule.c 2016-12-17 21:05:07.000000000 +0100
+++ Python-2.7.13-modified/Modules/pwdmodule.c 2017-08-10 13:55:19.603089081 +0100
@@ -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);