00db10
Backport of this upstream commit, with ports/ readded to the path.
00db10
00db10
commit 14d623bcd178d336b47fdb4f0c973720d56d907c
00db10
Author: Szabolcs Nagy <nsz@port70.net>
00db10
Date:   Thu Jul 9 09:39:51 2015 +0100
00db10
00db10
    [AArch64][BZ 18400] fix elf_prpsinfo in procfs.h
00db10
    
00db10
    Kernel uses int pr_uid, pr_gid, but glibc used unsigned short.
00db10
    
00db10
    This is an ABI breaking change, but the size and alignment of
00db10
    the struct and the layout of other members is not changed and
00db10
    there is no known usage of pr_uid and pr_gid so it is expected
00db10
    to be safe.
00db10
    
00db10
    	[BZ #18400]
00db10
    	* sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
00db10
    	Fix pr_uid and pr_gid members.
00db10
00db10
diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/sys/procfs.h b/ports/sysdeps/unix/sysv/linux/aarch64/sys/procfs.h
00db10
index cf5e76c..ecc65ab 100644
00db10
--- a/ports/sysdeps/unix/sysv/linux/aarch64/sys/procfs.h
00db10
+++ b/ports/sysdeps/unix/sysv/linux/aarch64/sys/procfs.h
00db10
@@ -91,8 +91,8 @@ struct elf_prpsinfo
00db10
     char pr_zomb;			/* Zombie.  */
00db10
     char pr_nice;			/* Nice val.  */
00db10
     unsigned long int pr_flag;		/* Flags.  */
00db10
-    unsigned short int pr_uid;
00db10
-    unsigned short int pr_gid;
00db10
+    unsigned int pr_uid;
00db10
+    unsigned int pr_gid;
00db10
     int pr_pid, pr_ppid, pr_pgrp, pr_sid;
00db10
     /* Lots missing */
00db10
     char pr_fname[16];			/* Filename of executable.  */