fix purego build errors on non-supported architectures

This commit is contained in:
henrygd
2026-01-11 17:48:19 -05:00
parent 42c3ca5db5
commit 618e5b4cc1
4 changed files with 18 additions and 4 deletions

View File

@@ -1,14 +1,14 @@
//go:build linux
//go:build linux && (amd64 || arm64)
package agent
import (
"log/slog"
"os"
"path/filepath"
"strings"
"github.com/ebitengine/purego"
"log/slog"
)
func openLibrary(name string) (uintptr, error) {