]> Cypherpunks repositories - gostls13.git/commitdiff
libmach: fix build on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Wed, 1 May 2013 22:48:13 +0000 (15:48 -0700)
committerRob Pike <r@golang.org>
Wed, 1 May 2013 22:48:13 +0000 (15:48 -0700)
Include libc.h before bio.h in 8.c, because bio.h uses
the UTFmax enum, which is declared in libc.h, since
the recent switch to 21-bit runes in Plan 9.

The 5.c and 6.c files already includes libc.h.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/9040047

src/libmach/8.c

index 07ec305057bae2170bc9a253364f4118c1fb7520..34248e6f33ac1703bf6c1c3d04a9a9f5f98b466d 100644 (file)
@@ -30,6 +30,7 @@
  * 386 definition
  */
 #include <u.h>
+#include <libc.h>
 #include <bio.h>
 #include <ureg_x86.h>
 #include <mach.h>