From dcb062b063dd5f8d715bae03bc7fd569d0f8807c Mon Sep 17 00:00:00 2001 From: Eric Branlund Date: Fri, 18 Sep 2020 16:59:12 -0700 Subject: [PATCH] Put in place a workaround for compiling on Linux: unset si_ptr which is conflicting with Hengband. --- src/system/h-system.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/system/h-system.h b/src/system/h-system.h index 04e43fd5c..f516cab2b 100644 --- a/src/system/h-system.h +++ b/src/system/h-system.h @@ -70,6 +70,15 @@ # include +# ifdef si_ptr +/* + * Linux (at least Debian 10) defines this to access a field in siginfo_t + * (see the sigaction(2) man page). Get rid of it since Hengband isn't + * using siginfo_t and does use si_ptr in other contexts. + */ +# undef si_ptr +# endif + #endif /* SET_UID */ #include -- 2.11.0