mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 13:51:00 +08:00
Fix sysinfo.go on systems which don't need to import "unsafe".
From-SVN: r179216
This commit is contained in:
parent
1b946b2764
commit
f0f91207e4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user