summaryrefslogtreecommitdiff
path: root/libgo/go/net
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-02-16 11:30:04 -0800
committerIan Lance Taylor <iant@golang.org>2022-02-16 12:20:10 -0800
commit24ca97325cab7bc454c785d55f37120fe7ea6f74 (patch)
tree0dff7e34fe65a75ba82e4a13d69991fdaea7c5eb /libgo/go/net
parent6d66bd25dc84e362f56ffe66667f6c9017ba73d0 (diff)
libgo: restore building on Solaris
Add build tags and a few other changes so that libgo builds on Solaris. Patch partially from Rainer Orth. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/386215
Diffstat (limited to 'libgo/go/net')
-rw-r--r--libgo/go/net/fcntl_libc_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/libgo/go/net/fcntl_libc_test.go b/libgo/go/net/fcntl_libc_test.go
index f59a1aa33ba..c935c4540cf 100644
--- a/libgo/go/net/fcntl_libc_test.go
+++ b/libgo/go/net/fcntl_libc_test.go
@@ -6,7 +6,10 @@
package net
-import "syscall"
+import (
+ "syscall"
+ _ "unsafe"
+)
// Use a helper function to call fcntl. This is defined in C in
// libgo/runtime.