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