OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43de477
)
Put in place a workaround for compiling on Linux: unset si_ptr which is conflicting...
author
Eric Branlund
<ebranlund@fastmail.com>
Fri, 18 Sep 2020 23:59:12 +0000
(16:59 -0700)
committer
Eric Branlund
<ebranlund@fastmail.com>
Sat, 19 Sep 2020 00:04:31 +0000
(17:04 -0700)
src/system/h-system.h
patch
|
blob
|
history
diff --git
a/src/system/h-system.h
b/src/system/h-system.h
index
04e43fd
..
f516cab
100644
(file)
--- a/
src/system/h-system.h
+++ b/
src/system/h-system.h
@@
-70,6
+70,15
@@
# 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>