diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-12-24 05:05:32 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-12-24 05:05:32 +0000 |
commit | f2a879930992085ca4e4f6b0cdd8d4debc6f4a47 (patch) | |
tree | c94e2459b928f333204b4d5d14a9e36ebe2244ff /libgo | |
parent | 767a77e593aee3ddde5cef8fb6e1755bf5efce20 (diff) | |
download | gcc-f2a879930992085ca4e4f6b0cdd8d4debc6f4a47.zip gcc-f2a879930992085ca4e4f6b0cdd8d4debc6f4a47.tar.gz gcc-f2a879930992085ca4e4f6b0cdd8d4debc6f4a47.tar.bz2 |
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
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/internal/poll/errno_unix.go | 2 | ||||
-rw-r--r-- | libgo/go/os/export_unix_test.go | 2 | ||||
-rw-r--r-- | libgo/go/runtime/os_hurd.go | 2 | ||||
-rw-r--r-- | libgo/go/syscall/export_unix_test.go | 2 |
4 files changed, 4 insertions, 4 deletions
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 |