svn commit: r538427 - head/graphics/gmt5/files
Mikael Urankar
mikael at FreeBSD.org
Wed Jun 10 19:01:48 UTC 2020
Author: mikael
Date: Wed Jun 10 19:01:47 2020
New Revision: 538427
URL: https://svnweb.freebsd.org/changeset/ports/538427
Log:
graphics/gmt5: fix build on aarch64
Approved by: portmgr (tier-2 blanket)
Modified:
head/graphics/gmt5/files/patch-src_common__sighandler.c
Modified: head/graphics/gmt5/files/patch-src_common__sighandler.c
==============================================================================
--- head/graphics/gmt5/files/patch-src_common__sighandler.c Wed Jun 10 18:48:31 2020 (r538426)
+++ head/graphics/gmt5/files/patch-src_common__sighandler.c Wed Jun 10 19:01:47 2020 (r538427)
@@ -1,11 +1,13 @@
--- src/common_sighandler.c.orig 2019-02-25 06:44:38 UTC
+++ src/common_sighandler.c
-@@ -69,6 +69,8 @@ void backtrace_symbols_fd(void *const *buffer, int siz
+@@ -69,6 +69,10 @@ 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( __ppc__)
+# define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_srr0)
++# elif defined( __aarch64__)
++# define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_gpregs.gp_elr)
# else
# define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_eip)
# endif
More information about the svn-ports-head
mailing list