From 009fc642de10b8b1184700240c4c5810db569db8 Mon Sep 17 00:00:00 2001 From: Mikael Urankar Date: Sun, 29 Nov 2020 15:40:36 +0000 Subject: [PATCH] graphics/gmt: Fix build on aarch64 Approved by: portmgr (tier-2 blanket) --- .../gmt/files/patch-src_gmt__common__sighandler.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 graphics/gmt/files/patch-src_gmt__common__sighandler.c diff --git a/graphics/gmt/files/patch-src_gmt__common__sighandler.c b/graphics/gmt/files/patch-src_gmt__common__sighandler.c new file mode 100644 index 000000000000..e4d10e76d8bd --- /dev/null +++ b/graphics/gmt/files/patch-src_gmt__common__sighandler.c @@ -0,0 +1,11 @@ +--- src/gmt_common_sighandler.c.orig 2020-11-28 18:05:26 UTC ++++ src/gmt_common_sighandler.c +@@ -69,6 +69,8 @@ void backtrace_symbols_fd(void *const *buffer, int siz + # define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_rip) + # elif defined( __arm__) + # define UC_IP(uc) ((void *) (uc)->uc_mcontext.arm_pc) ++# elif defined( __aarch64__) ++# define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_gpregs.gp_elr) + # elif defined(__ppc__) + # define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_srr0) + # else