]> Cypherpunks repositories - gostls13.git/commitdiff
lib9: build tokenize on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Wed, 21 Jan 2015 23:25:08 +0000 (00:25 +0100)
committerDavid du Colombier <0intro@gmail.com>
Wed, 21 Jan 2015 23:27:01 +0000 (23:27 +0000)
The build was broken on Plan 9 after the
CL 2994, because of the use of getfields
in src/liblink/go.c.

This happened when building 8l, because
getfield was part of lib9 and tokenize
was part of the Plan 9 libc. However,
both getfields and tokenize depend on
utfrune, causing an incompatibility.

This change enables the build of tokenize
as part of lib9, so it doesn't use
tokenize from the Plan 9 libc anymore.

Change-Id: I2a76903b508bd92771c4754cd53dfc64df350892
Reviewed-on: https://go-review.googlesource.com/3121
Reviewed-by: Minux Ma <minux@golang.org>
src/lib9/tokenize.c

index a095fcda9c3b8e47f8c2103d8cfdf926392698c9..a9b5935670e830e21eba41e79ebfca039a3fe5fc 100644 (file)
@@ -1,5 +1,3 @@
-// +build !plan9
-
 /*
 Inferno lib9/tokenize.c
 http://code.google.com/p/inferno-os/source/browse/lib9/tokenize.c