]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
memmod: apply explicit build tags to _32 and _64 files
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 23 Dec 2020 16:49:36 +0000 (17:49 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 7 Jan 2021 13:49:44 +0000 (14:49 +0100)
commit3d83df9bf3edcffcd5c2347323f70b9d12898a81
tree08d5239fdb9b839ba9562bf1ee901d9ffbbecc40
parentd664444928f91c01a2c7583fdb58983c308e9b4d
memmod: apply explicit build tags to _32 and _64 files

Since _32 and _64 aren't valid goarchs, they don't match _GOOS_GOARCH,
and so the existing tags wind up not being restricted to windows-only.
This fixes the problem by adding windows to the tags explicitly. We
could also fix it by calling the files _32_windows or _64_windows, but
that changes the convention with the other single-arch files.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
tun/wintun/memmod/memmod_windows_32.go
tun/wintun/memmod/memmod_windows_64.go
tun/wintun/memmod/syscall_windows_32.go
tun/wintun/memmod/syscall_windows_64.go