00db10
Backport of this upstream commit, with ports/ readded to the path.
00db10
00db10
commit b8528e771c0f31ebb8ac2470e2cf7ee9a50693e2
00db10
Author: Szabolcs Nagy <nsz@port70.net>
00db10
Date:   Thu Jul 9 09:53:30 2015 +0100
00db10
00db10
    [AArch64][BZ 18648] change greg_t definition in ucontext.h
00db10
    
00db10
    This is an ABI breaking change, but
00db10
    
00db10
    	typedef int greg_t;
00db10
    
00db10
    is not a useful definition on aarch64.
00db10
    
00db10
    greg_t is usually used for defining gregset_t which is used
00db10
    in mcontext_t.  The general registers in mcontext_t can only
00db10
    be accessed by target specific code and on aarch64 greg_t
00db10
    is not needed for that so this change is not supposed to break
00db10
    existing code, just fix the definition.
00db10
    
00db10
    	[BZ #18648]
00db10
    	* sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
00db10
    	definition to elf_greg_t.
00db10
    
00db10
    (Added another BZ entry that was missed in the previous commit).
00db10
00db10
diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h b/ports/sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
00db10
index db7a7c1..e7268ce 100644
00db10
--- a/ports/sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
00db10
+++ b/ports/sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
00db10
@@ -29,7 +29,7 @@
00db10
    included in <signal.h>.  */
00db10
 #include <bits/sigcontext.h>
00db10
 
00db10
-typedef int greg_t;
00db10
+typedef elf_greg_t greg_t;
00db10
 
00db10
 /* Container for all general registers.  */
00db10
 typedef elf_gregset_t gregset_t;