mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
graphics/gmt: Fix build on aarch64
Approved by: portmgr (tier-2 blanket)
This commit is contained in:
parent
bc8234fa0a
commit
009fc642de
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=556575
11
graphics/gmt/files/patch-src_gmt__common__sighandler.c
Normal file
11
graphics/gmt/files/patch-src_gmt__common__sighandler.c
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user