Skip to content

Commit

Permalink
syscall: don't define syscall stub on Hurd
Browse files Browse the repository at this point in the history
Patch from Samuel Thibault.

Change-Id: I782d6c702c086352a61df1574747bab0745ff545
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/623415
Reviewed-by: Ian Lance Taylor <[email protected]>
Reviewed-by: Cherry Mui <[email protected]>
  • Loading branch information
ianlancetaylor committed Oct 30, 2024
1 parent 092668d commit f9ea980
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libgo/go/syscall/syscall_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build darwin || dragonfly || freebsd || hurd || linux || netbsd || openbsd || solaris
// +build darwin dragonfly freebsd hurd linux netbsd openbsd solaris
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
// +build darwin dragonfly freebsd linux netbsd openbsd solaris

package syscall

Expand Down
4 changes: 2 additions & 2 deletions libgo/go/syscall/syscall_funcs_stubs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build aix || rtems
// +build aix rtems
//go:build aix || hurd || rtems
// +build aix hurd rtems

// These are stubs.

Expand Down
2 changes: 1 addition & 1 deletion libgo/runtime/go-nosys.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ strerror_r (int errnum, char *buf, size_t buflen)

#endif /* ! HAVE_STRERROR_R */

#ifndef HAVE_SYSCALL
#if !defined(HAVE_SYSCALL) && !defined(__GNU__) /* GNU/Hurd already has a stub */
int
syscall(int number __attribute__ ((unused)), ...)
{
Expand Down

0 comments on commit f9ea980

Please sign in to comment.