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