OSDN Git Service

Put in place a workaround for compiling on Linux: unset si_ptr which is conflicting...
authorEric Branlund <ebranlund@fastmail.com>
Fri, 18 Sep 2020 23:59:12 +0000 (16:59 -0700)
committerEric Branlund <ebranlund@fastmail.com>
Sat, 19 Sep 2020 00:04:31 +0000 (17:04 -0700)
src/system/h-system.h

index 04e43fd..f516cab 100644 (file)
 
 # include <sys/stat.h>
 
+# 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 <string.h>