From 522307281ce9042e0bb3044f4a162adcdee0f9f6 Mon Sep 17 00:00:00 2001 From: Nikhil Benesch Date: Mon, 19 Oct 2020 02:19:04 +0000 Subject: [PATCH] syscall: remove Sendfile on NetBSD NetBSD does not support the sendfile syscall. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/263521 --- gcc/go/gofrontend/MERGE | 2 +- libgo/go/syscall/libcall_bsd_regfile.go | 2 +- libgo/go/syscall/{libcall_bsd.go => libcall_bsd_sendfile.go} | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename libgo/go/syscall/{libcall_bsd.go => libcall_bsd_sendfile.go} (88%) diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 7496770f018..4ac0e8c6fc6 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -3b6252d2d3ce559826303dac07538da6e78940d8 +6662382a279dd5a5f99307e9b609654717638b24 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. 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 similarity index 88% rename from libgo/go/syscall/libcall_bsd.go rename to 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 -- 2.30.2