From 491a3ca5b74fc4c06746020594d716b30195a923 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 28 Jul 2010 18:21:50 -0700 Subject: [PATCH] gc: fix SIGBUS R=ken2 CC=golang-dev https://golang.org/cl/1906042 --- include/u.h | 5 +++++ src/cmd/gc/go.h | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/u.h b/include/u.h index 6dd55a09c70..3cc1f335c77 100644 --- a/include/u.h +++ b/include/u.h @@ -68,6 +68,7 @@ extern "C" { #include #include #include /* for tolower */ +#include /* * 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. */ diff --git a/src/cmd/gc/go.h b/src/cmd/gc/go.h index cef3153c83d..6b87a782f6f 100644 --- a/src/cmd/gc/go.h +++ b/src/cmd/gc/go.h @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. #include -#include #include #include