diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-09-15 03:43:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-09-15 03:43:01 +0000 |
commit | 44c925bdb0e0c53ed9816e931b97c4f52928a038 (patch) | |
tree | 0b3ccd82b66f339449a4d60b3415dd02def06a13 /libgo/go | |
parent | f468efc59ba95f1e51f2537928caa71f130400ce (diff) | |
download | gcc-44c925bdb0e0c53ed9816e931b97c4f52928a038.zip gcc-44c925bdb0e0c53ed9816e931b97c4f52928a038.tar.gz gcc-44c925bdb0e0c53ed9816e931b97c4f52928a038.tar.bz2 |
libgo: don't provide ustat on arm64 GNU/Linux
This avoids linker warnings when linking against glibc, as apparently
arm64 GNU/Linux does not support the ustat system call.
Also update to automake 1.11.6, as that is the new GCC standard.
Reviewed-on: https://go-review.googlesource.com/14567
From-SVN: r227777
Diffstat (limited to 'libgo/go')
-rw-r--r-- | libgo/go/syscall/libcall_linux.go | 3 | ||||
-rw-r--r-- | libgo/go/syscall/libcall_linux_ustat.go | 11 |
2 files changed, 11 insertions, 3 deletions
diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go index 93137fc..50b04ff 100644 --- a/libgo/go/syscall/libcall_linux.go +++ b/libgo/go/syscall/libcall_linux.go @@ -408,6 +408,3 @@ func Unlinkat(dirfd int, path string) (err error) { //sys Unshare(flags int) (err error) //unshare(flags _C_int) _C_int - -//sys Ustat(dev int, ubuf *Ustat_t) (err error) -//ustat(dev _dev_t, ubuf *Ustat_t) _C_int diff --git a/libgo/go/syscall/libcall_linux_ustat.go b/libgo/go/syscall/libcall_linux_ustat.go new file mode 100644 index 0000000..f7f3406 --- /dev/null +++ b/libgo/go/syscall/libcall_linux_ustat.go @@ -0,0 +1,11 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// GNU/Linux library ustat call. +// This is not supported on some kernels, such as arm64. + +package syscall + +//sys Ustat(dev int, ubuf *Ustat_t) (err error) +//ustat(dev _dev_t, ubuf *Ustat_t) _C_int |