summaryrefslogtreecommitdiff
path: root/include/u.h
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2011-01-17 12:40:45 +0100
committerOndřej Surý <ondrej@sury.org>2011-01-17 12:40:45 +0100
commit3e45412327a2654a77944249962b3652e6142299 (patch)
treebc3bf69452afa055423cbe0c5cfa8ca357df6ccf /include/u.h
parentc533680039762cacbc37db8dc7eed074c3e497be (diff)
downloadgolang-3e45412327a2654a77944249962b3652e6142299.tar.gz
Imported Upstream version 2011.01.12upstream/2011.01.12
Diffstat (limited to 'include/u.h')
-rw-r--r--include/u.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/u.h b/include/u.h
index 6dd55a09c..3cc1f335c 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.
*/