From 81a800b8aac1fd33bc6263d4caa1778d74f0a19a Mon Sep 17 00:00:00 2001 From: "Ivan A. Melnikov" Date: Wed, 2 Oct 2024 12:46:56 +0400 Subject: [PATCH] Fix build failure on loongarch64 due to missed syscall Just as riscv64, loongarch64 does not have dup2 syscall, so we have to adjust the build system instructions accordingly. --- logging/logging_dup2.go | 2 +- logging/logging_dup3.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/logging/logging_dup2.go b/logging/logging_dup2.go index c7371c44..00ac096e 100644 --- a/logging/logging_dup2.go +++ b/logging/logging_dup2.go @@ -1,4 +1,4 @@ -// +build linux,!arm64,!riscv64 openbsd,!arm64 freebsd darwin +// +build linux,!arm64,!loong64,!riscv64 openbsd,!arm64 freebsd darwin package logging diff --git a/logging/logging_dup3.go b/logging/logging_dup3.go index de6a6384..b544e470 100644 --- a/logging/logging_dup3.go +++ b/logging/logging_dup3.go @@ -1,4 +1,4 @@ -// +build !freebsd,!darwin,arm64 linux,riscv64 +// +build !freebsd,!darwin,arm64 linux,loong64 linux,riscv64 package logging