]> Cypherpunks repositories - gostls13.git/commitdiff
gc: fix SIGBUS
authorRuss Cox <rsc@golang.org>
Thu, 29 Jul 2010 01:21:50 +0000 (18:21 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 29 Jul 2010 01:21:50 +0000 (18:21 -0700)
R=ken2
CC=golang-dev
https://golang.org/cl/1906042

include/u.h
src/cmd/gc/go.h

index 6dd55a09c701d814e8cd3faa5f56e5e32281a071..3cc1f335c7788d14a5fdaa012338861745fb338a 100644 (file)
@@ -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.
  */
index cef3153c83d51172aeee9145f4bf5be993a10cfd..6b87a782f6f6de531273da5bceebdc7e76aaf581 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 #include       <u.h>
-#include       <signal.h>
 #include       <libc.h>
 #include       <bio.h>