Commit f2a87993 by Ian Lance Taylor

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
parent 767a77e5
85641a0f26061f7c98db42a2adb3250c07ce504e 393957c8b68e370504209eb901aa0c3874e256d4
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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 package poll
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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 package os
......
...@@ -112,7 +112,7 @@ func semawakeup(mp *m) { ...@@ -112,7 +112,7 @@ func semawakeup(mp *m) {
} }
func getncpu() int32 { func getncpu() int32 {
n := int32(sysconf(_SC_NPROCESSORS_ONLN)) n := int32(sysconf(__SC_NPROCESSORS_ONLN))
if n < 1 { if n < 1 {
return 1 return 1
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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 package syscall
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment