]> Cypherpunks.ru repositories - gostls13.git/commit
net: adjust build tags for darwin libc calls
authorDan Peterson <danp@danp.net>
Sun, 6 Nov 2022 21:03:00 +0000 (17:03 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 7 Nov 2022 21:05:53 +0000 (21:05 +0000)
commite7422b05915759a8e4a8f38382ffd4d38d4fa2ea
treeee80714f852267bf6ff5eddd74cb15df2b1f2769
parent969bea8d59daa6bdd478b71f6e99d8b8f625a140
net: adjust build tags for darwin libc calls

Support for direct libc calls was added in CL 446178 but the build
tags weren't quite activating it when cgo was not enabled. Adjust them
and add a new supporting file for darwin.

This should use the new direct libc calls with both CGO_ENABLED=0 and
CGO_ENABLED=1 when building for darwin.

Updates #12524

Change-Id: Ieee4b298dee13f389ed3a63c0a4a3a18c9180163
Reviewed-on: https://go-review.googlesource.com/c/go/+/448020
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Dan Peterson <danp@danp.net>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/net/cgo_bsd.go
src/net/cgo_darwin.go [new file with mode: 0644]
src/net/cgo_stub.go
src/net/cgo_unix.go
src/net/cgo_unix_syscall.go
src/net/cgo_unix_test.go
src/net/netgo.go
src/net/netgo_unix_test.go