aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/gc
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2015-01-30 16:20:46 +1100
committerRuss Cox <rsc@golang.org>2015-01-30 14:45:37 +0000
commitea2f3f9e7afef112069aaf647c8e2bd5c0c2bc2f (patch)
tree93e313209ddd1247617b7427d3b7770b1caf3ae1 /src/cmd/gc
parent3c3848ad92bac9edce2ec1e510c01f9bf2317ea3 (diff)
downloadgo-ea2f3f9e7afef112069aaf647c8e2bd5c0c2bc2f.tar.xz
liblink: fix arm build again
Another attempt to fix the arm build by moving the include of signal.h to cmd/lex.c, unless we are building on plan9. Obviously if we had a plan9/arm builder this would probably not work, but this is only a temporary measure until the c2go transition is complete. Change-Id: I7f8ae27349b2e7a09c55db03e02a01939159a268 Reviewed-on: https://go-review.googlesource.com/3566 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/gc')
-rw-r--r--src/cmd/gc/lex.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cmd/gc/lex.c b/src/cmd/gc/lex.c
index 2bff531e57..042099bd5e 100644
--- a/src/cmd/gc/lex.c
+++ b/src/cmd/gc/lex.c
@@ -8,6 +8,10 @@
#include "y.tab.h"
#include <ar.h>
+#ifndef PLAN9
+#include <signal.h>
+#endif
+
#undef getc
#undef ungetc
#define getc ccgetc
@@ -1275,7 +1279,7 @@ talph:
if(c >= Runeself) {
ungetc(c);
rune = getr();
- // 0xb7 · is used for internal names
+ // 0xb7 · is used for internal names
if(!isalpharune(rune) && !isdigitrune(rune) && (importpkg == nil || rune != 0xb7))
yyerror("invalid identifier character U+%04x", rune);
cp += runetochar(cp, &rune);