]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: fix windows build
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 13 Feb 2014 16:15:19 +0000 (20:15 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 13 Feb 2014 16:15:19 +0000 (20:15 +0400)
c:\src\go\pkg\obj\windows_amd64\libgc.a(lex.o): In function `catcher':
c:/src/go/src/cmd/gc/lex.c:181: undefined reference to `noted'

LGTM=0intro
R=0intro
CC=golang-codereviews
https://golang.org/cl/63270043

src/cmd/gc/lex.c

index a607fabde0d18839dd1125519fa4cb5ff17c7d82..ad2499701f96aeaeacc3065251b019e35e0a2345 100644 (file)
@@ -164,6 +164,7 @@ fault(int s)
        fatal("fault");
 }
 
+#ifdef PLAN9
 void
 catcher(void *v, char *s)
 {
@@ -180,6 +181,7 @@ catcher(void *v, char *s)
        }
        noted(NDFLT);
 }
+#endif
 
 void
 doversion(void)