]> Cypherpunks repositories - gostls13.git/commit
runtime: make goc2c build on Plan 9
authorLucio De Re <lucio.dere@gmail.com>
Tue, 19 Jul 2011 15:04:33 +0000 (11:04 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 19 Jul 2011 15:04:33 +0000 (11:04 -0400)
commitb546f5071604db359caab7ae62ed66af308c27f4
tree5dcea17105505be17e1e2c3c724f1886af8eb5c8
parent025abd530e2c5a010b295efbcbcef94aff0cd396
runtime: make goc2c build on Plan 9

pkg/runtime/Makefile:
. Adjusted so "goc2c.c" is built using the Plan 9 libraries.

pkg/runtime/goc2c.c:
. Added/subtracted #include headers to correspond to Plan 9
  toolkit.
. Changed fprintf(stderr,...)/exit() combinations to
  sysfatal() calls, adjusted the "%u" format to "%ud".
. Added exits(0) at the end of main().
. Made main() a void-returning function and removed the
  "return 0" at the end of it.

Tested on UBUNTU and Plan 9 only.

R=r, rsc
CC=golang-dev
https://golang.org/cl/4626093
src/pkg/runtime/Makefile
src/pkg/runtime/goc2c.c