diff mbox

Go patch committed: Update libgo to Go release r60

Message ID mcrk48vgejr.fsf@coign.corp.google.com
State New
Headers show

Commit Message

Ian Lance Taylor Sept. 26, 2011, 9:49 p.m. UTC
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:

> the problem turned out to be obvious once you ignore most of the error
> message ;-(  The spurious import is in sysinfo.go, which unconditionally
> imports the package, but only uses in some cases.

And this patch should fix the Solaris problem.  Bootstrapped and ran Go
testsuite on x86_64-unknown-linux-gnu.  Committed to mainline.  Thanks
for tracking it down.

Ian
diff mbox

Patch

diff -r a131218e78a4 libgo/mksysinfo.sh
--- a/libgo/mksysinfo.sh	Mon Sep 26 12:34:51 2011 -0700
+++ b/libgo/mksysinfo.sh	Mon Sep 26 12:55:14 2011 -0700
@@ -96,6 +96,7 @@ 
 
 echo 'package syscall' > ${OUT}
 echo 'import "unsafe"' >> ${OUT}
+echo 'type _ unsafe.Pointer' >> ${OUT}
 
 # Get all the consts and types, skipping ones which could not be
 # represented in Go and ones which we need to rewrite.  We also skip