summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-07-28 18:21:50 -0700
committerRuss Cox <rsc@golang.org>2010-07-28 18:21:50 -0700
commit491a3ca5b74fc4c06746020594d716b30195a923 (patch)
tree72fbf2887f42ba2b4725b3747fbc855cd9fad638 /include
parent4f64ecfddad44524fe686f3e16a8f92487d912d9 (diff)
downloadgo-git-491a3ca5b74fc4c06746020594d716b30195a923.tar.gz
gc: fix SIGBUS
R=ken2 CC=golang-dev https://golang.org/cl/1906042
Diffstat (limited to 'include')
-rw-r--r--include/u.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/u.h b/include/u.h
index 6dd55a09c7..3cc1f335c7 100644
--- a/include/u.h
+++ b/include/u.h
@@ -68,6 +68,7 @@ extern "C" {
#include <stddef.h>
#include <math.h>
#include <ctype.h> /* for tolower */
+#include <signal.h>
/*
* OS-specific crap
@@ -192,6 +193,10 @@ typedef u64int uint64;
#undef _NEEDUINT
#undef _NEEDULONG
+#ifndef SIGBUS
+#define SIGBUS SIGSEGV /* close enough */
+#endif
+
/*
* Funny-named symbols to tip off 9l to autolink.
*/