aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-02-21 09:50:28 -0800
committerIan Lance Taylor <iant@golang.org>2022-02-21 13:24:38 -0800
commita7eeaa48986f37badb78717e3c138a8d02bb01a6 (patch)
treeaba52b475b168140ffd1f095821de8f21f11e818 /libgo
parentce09ab17ddd21f73ff2caf6eec3b0ee9b0e1a11e (diff)
downloadgcc-a7eeaa48986f37badb78717e3c138a8d02bb01a6.zip
gcc-a7eeaa48986f37badb78717e3c138a8d02bb01a6.tar.gz
gcc-a7eeaa48986f37badb78717e3c138a8d02bb01a6.tar.bz2
runtime/internal/syscall: build dummy package if not Linux
Fixes libgo build on non-Linux systems. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/387134
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/runtime/internal/syscall/syscall_other.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/libgo/go/runtime/internal/syscall/syscall_other.go b/libgo/go/runtime/internal/syscall/syscall_other.go
new file mode 100644
index 0000000..c0945ce
--- /dev/null
+++ b/libgo/go/runtime/internal/syscall/syscall_other.go
@@ -0,0 +1,7 @@
+// Copyright 2022 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build !linux
+
+package syscall