From: Ian Lance Taylor Date: Mon, 26 Sep 2011 21:49:08 +0000 (+0000) Subject: Fix sysinfo.go on systems which don't need to import "unsafe". X-Git-Tag: releases/gcc-4.7.0~3550 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0f91207e431dcc770f31349d5e149ce595c578c;p=thirdparty%2Fgcc.git Fix sysinfo.go on systems which don't need to import "unsafe". From-SVN: r179216 --- diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 2bc35e5b8832..2b5acd6051f1 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -96,6 +96,7 @@ ${CC} -fdump-go-spec=gen-sysinfo.go -std=gnu99 -S -o sysinfo.s sysinfo.c 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