Skip to content

Commit aad9de3

Browse files
syscall: don't define syscall stub on Hurd
Patch from Samuel Thibault. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/623415
1 parent a2cd5d1 commit aad9de3

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

gcc/go/gofrontend/MERGE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
092668d6ce6d7b3aff6797247cd53dc44319c558
1+
f9ea9801058aa98a421784da12b76cda0b4c6cf2
22

33
The first line of this file holds the git revision number of the last
44
merge done from the gofrontend repository.

libgo/go/syscall/syscall_funcs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build darwin || dragonfly || freebsd || hurd || linux || netbsd || openbsd || solaris
6-
// +build darwin dragonfly freebsd hurd linux netbsd openbsd solaris
5+
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
6+
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
77

88
package syscall
99

libgo/go/syscall/syscall_funcs_stubs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build aix || rtems
6-
// +build aix rtems
5+
//go:build aix || hurd || rtems
6+
// +build aix hurd rtems
77

88
// These are stubs.
99

libgo/runtime/go-nosys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ strerror_r (int errnum, char *buf, size_t buflen)
504504

505505
#endif /* ! HAVE_STRERROR_R */
506506

507-
#ifndef HAVE_SYSCALL
507+
#if !defined(HAVE_SYSCALL) && !defined(__GNU__) /* GNU/Hurd already has a stub */
508508
int
509509
syscall(int number __attribute__ ((unused)), ...)
510510
{

0 commit comments

Comments
 (0)