diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-09-26 21:49:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-09-26 21:49:08 +0000 |
commit | f0f91207e431dcc770f31349d5e149ce595c578c (patch) | |
tree | 6dac860537102173323f07dfbfb30f357bb2520a | |
parent | 1b946b27649d6b8c0fcd4f6fdad9ff14dda1ffff (diff) | |
download | gcc-f0f91207e431dcc770f31349d5e149ce595c578c.zip gcc-f0f91207e431dcc770f31349d5e149ce595c578c.tar.gz gcc-f0f91207e431dcc770f31349d5e149ce595c578c.tar.bz2 |
Fix sysinfo.go on systems which don't need to import "unsafe".
From-SVN: r179216
-rwxr-xr-x | libgo/mksysinfo.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 2bc35e5..2b5acd6 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 |