summaryrefslogtreecommitdiffstats
path: root/Modules/grpmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/grpmodule.c')
-rw-r--r--Modules/grpmodule.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/grpmodule.c b/Modules/grpmodule.c
index ecb9ade..cff9d83 100644
--- a/Modules/grpmodule.c
+++ b/Modules/grpmodule.c
@@ -49,7 +49,13 @@ static object *mkgrent(p)
v = mkvalue("(sslO)",
p->gr_name,
p->gr_passwd,
+#if defined(NeXT) && defined(_POSIX_SOURCE) && defined(__LITTLE_ENDIAN__)
+/* Correct a bug present on Intel machines in NextStep 3.2 and 3.3;
+ for later versions you may have to remove this */
+ (long)p->gr_short_pad, /* ugh-NeXT broke the padding */
+#else
(long)p->gr_gid,
+#endif
w);
DECREF(w);
return v;