]> Cypherpunks repositories - gostls13.git/commit
net: only build cgo_stub.go on unix or wasip1
authorIan Lance Taylor <iant@golang.org>
Mon, 3 Jul 2023 12:05:55 +0000 (05:05 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 6 Jul 2023 19:37:13 +0000 (19:37 +0000)
commit449ef3795d8054faf4a601d8d1aab1f624b822f5
tree24a841cfcc5ca1990fb244e73a6e5c43efa620d4
parent6305d7fdd3a5c9d50010c04f4c418444517082ab
net: only build cgo_stub.go on unix or wasip1

We were building it for Windows, although Windows code never calls
any of these functions. When using -tags netgo that cause a multiple
definition of cgoAvailable.

Fixes #61153

Change-Id: Ib9e1de7720a8c0dacd6f12002917bf305dfa5405
Reviewed-on: https://go-review.googlesource.com/c/go/+/507655
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/net/cgo_stub.go