syscall: don't define syscall stub on Hurd

Patch from Samuel Thibault.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/623415
This commit is contained in:
Ian Lance Taylor 2024-10-29 15:39:02 -07:00
parent a2cd5d1f10
commit aad9de3227
4 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
092668d6ce6d7b3aff6797247cd53dc44319c558 f9ea9801058aa98a421784da12b76cda0b4c6cf2
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.

View File

@ -2,8 +2,8 @@
// 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.
//go:build darwin || dragonfly || freebsd || hurd || linux || netbsd || openbsd || solaris //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
// +build darwin dragonfly freebsd hurd linux netbsd openbsd solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris
package syscall package syscall

View File

@ -2,8 +2,8 @@
// 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.
//go:build aix || rtems //go:build aix || hurd || rtems
// +build aix rtems // +build aix hurd rtems
// These are stubs. // These are stubs.

View File

@ -504,7 +504,7 @@ strerror_r (int errnum, char *buf, size_t buflen)
#endif /* ! HAVE_STRERROR_R */ #endif /* ! HAVE_STRERROR_R */
#ifndef HAVE_SYSCALL #if !defined(HAVE_SYSCALL) && !defined(__GNU__) /* GNU/Hurd already has a stub */
int int
syscall(int number __attribute__ ((unused)), ...) syscall(int number __attribute__ ((unused)), ...)
{ {