diff options
author | Russ Cox <rsc@golang.org> | 2010-07-28 18:21:50 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-07-28 18:21:50 -0700 |
commit | 72e45ac44e611fa0a1466c0d51a8c7db6961ab96 (patch) | |
tree | ba3f2da0c32ff10fdd487af9e8f6f36cd6f4361d /include | |
parent | 892849b9363f241aa4b7d48ff8ca5b78506ec074 (diff) | |
download | go-72e45ac44e611fa0a1466c0d51a8c7db6961ab96.tar.gz |
gc: fix SIGBUS
R=ken2
CC=golang-dev
http://codereview.appspot.com/1906042
Diffstat (limited to 'include')
-rw-r--r-- | include/u.h | 5 |
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. */ |