diff options
author | Nikhil Benesch <nikhil.benesch@gmail.com> | 2020-10-19 02:19:04 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-10-20 10:57:10 -0700 |
commit | 522307281ce9042e0bb3044f4a162adcdee0f9f6 (patch) | |
tree | 544aa04d39114006a691d5163f53cdb40d930802 /libgo/go/syscall | |
parent | 6267bb7a11f53381d77b2c0a6193fcb9115d2b30 (diff) | |
download | gcc-522307281ce9042e0bb3044f4a162adcdee0f9f6.tar.gz |
syscall: remove Sendfile on NetBSD
NetBSD does not support the sendfile syscall.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/263521
Diffstat (limited to 'libgo/go/syscall')
-rw-r--r-- | libgo/go/syscall/libcall_bsd_regfile.go | 2 | ||||
-rw-r--r-- | libgo/go/syscall/libcall_bsd_sendfile.go (renamed from libgo/go/syscall/libcall_bsd.go) | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/syscall/libcall_bsd_regfile.go b/libgo/go/syscall/libcall_bsd_regfile.go index 388c8a7d782..0b9d01f2fcf 100644 --- a/libgo/go/syscall/libcall_bsd_regfile.go +++ b/libgo/go/syscall/libcall_bsd_regfile.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build darwin dragonfly freebsd netbsd openbsd solaris,amd64 solaris,sparc64 +// +build darwin dragonfly freebsd openbsd solaris,amd64 solaris,sparc64 package syscall diff --git a/libgo/go/syscall/libcall_bsd.go b/libgo/go/syscall/libcall_bsd_sendfile.go index 93f5710ba03..295a1f48969 100644 --- a/libgo/go/syscall/libcall_bsd.go +++ b/libgo/go/syscall/libcall_bsd_sendfile.go @@ -2,9 +2,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build darwin dragonfly freebsd netbsd openbsd solaris +// +build darwin dragonfly freebsd openbsd solaris -// BSD library calls. +// BSD sendfile support. package syscall |