adjust build tags for tamago

This commit is contained in:
Andrea Barisani 2023-08-30 14:05:01 +02:00 committed by James Tucker
parent 6cd5922a04
commit 202a3401e7
No known key found for this signature in database
4 changed files with 20 additions and 3 deletions

View file

@ -1,4 +1,4 @@
//go:build !windows && !linux && !wasm && !plan9 //go:build !windows && !linux && !wasm && !plan9 && !tamago
/* SPDX-License-Identifier: MIT /* SPDX-License-Identifier: MIT
* *

17
ipc/uapi_tamago.go Normal file
View file

@ -0,0 +1,17 @@
//go:build tamago
/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
*/
package ipc
// Made up sentinel error codes for tamago platform.
const (
IpcErrorIO = 1
IpcErrorInvalid = 2
IpcErrorPortInUse = 3
IpcErrorUnknown = 4
IpcErrorProtocol = 5
)

View file

@ -1,4 +1,4 @@
//go:build !windows && !wasm && !plan9 //go:build !windows && !wasm && !plan9 && !tamago
/* SPDX-License-Identifier: MIT /* SPDX-License-Identifier: MIT
* *

View file

@ -1,4 +1,4 @@
//go:build windows || wasm || plan9 //go:build windows || wasm || plan9 || tamago
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT