From f2a879930992085ca4e4f6b0cdd8d4debc6f4a47 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 24 Dec 2019 05:05:32 +0000 Subject: re PR go/93020 (Final patches to build gcc-10 on GNU/Hurd) PR go/93020 libgo: Hurd portability patches By Svante Signell. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/212409 From-SVN: r279724 --- libgo/go/internal/poll/errno_unix.go | 2 +- libgo/go/os/export_unix_test.go | 2 +- libgo/go/runtime/os_hurd.go | 2 +- libgo/go/syscall/export_unix_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'libgo/go') diff --git a/libgo/go/internal/poll/errno_unix.go b/libgo/go/internal/poll/errno_unix.go index 0b23fc3..922230b 100644 --- a/libgo/go/internal/poll/errno_unix.go +++ b/libgo/go/internal/poll/errno_unix.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 aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package poll diff --git a/libgo/go/os/export_unix_test.go b/libgo/go/os/export_unix_test.go index 032b1a9..3a15aad 100644 --- a/libgo/go/os/export_unix_test.go +++ b/libgo/go/os/export_unix_test.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 aix darwin dragonfly freebsd js,wasm linux nacl netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd js,wasm linux nacl netbsd openbsd solaris package os diff --git a/libgo/go/runtime/os_hurd.go b/libgo/go/runtime/os_hurd.go index bb3e7ff..b3c6f80 100644 --- a/libgo/go/runtime/os_hurd.go +++ b/libgo/go/runtime/os_hurd.go @@ -112,7 +112,7 @@ func semawakeup(mp *m) { } func getncpu() int32 { - n := int32(sysconf(_SC_NPROCESSORS_ONLN)) + n := int32(sysconf(__SC_NPROCESSORS_ONLN)) if n < 1 { return 1 } diff --git a/libgo/go/syscall/export_unix_test.go b/libgo/go/syscall/export_unix_test.go index 120500c..dc11f45 100644 --- a/libgo/go/syscall/export_unix_test.go +++ b/libgo/go/syscall/export_unix_test.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 aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package syscall -- cgit v1.1