Fix sysinfo.go on systems which don't need to import "unsafe".
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 26 Sep 2011 21:49:08 +0000 (21:49 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 26 Sep 2011 21:49:08 +0000 (21:49 +0000)
From-SVN: r179216

libgo/mksysinfo.sh

index 2bc35e5b88322a022a0aa40b80b6ff49c6b33b24..2b5acd6051f1be80f1f4c95353c8b053b7b4cc0f 100755 (executable)
@@ -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