runtime: make goc2c build on Plan 9
. Adjusted so "goc2c.c" is built using the Plan 9 libraries.
. Added/subtracted #include headers to correspond to Plan 9
. 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.
2 files changed