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