1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 19:29:53 +03:00
aports/community/go2rtc/commit-47f32a5f.patch
2025-03-16 10:59:13 +00:00

30 lines
866 B
Diff

From 47f32a5f5597e956b51dc5d0f0beadad6918ebf2 Mon Sep 17 00:00:00 2001
From: Alex X <alexey.khit@gmail.com>
Date: Thu, 13 Mar 2025 15:33:23 +0300
Subject: [PATCH] Fix support linux + riscv64 #1639
---
internal/v4l2/v4l2.go | 2 +-
internal/v4l2/v4l2_linux.go | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/internal/v4l2/v4l2.go b/internal/v4l2/v4l2.go
index 9cef99a5..3f2e62e6 100644
--- a/internal/v4l2/v4l2.go
+++ b/internal/v4l2/v4l2.go
@@ -1,4 +1,4 @@
-//go:build !linux
+//go:build !(linux && (386 || arm || mipsle || amd64 || arm64))
package v4l2
diff --git a/internal/v4l2/v4l2_linux.go b/internal/v4l2/v4l2_linux.go
index 2cd60692..0bb05473 100644
--- a/internal/v4l2/v4l2_linux.go
+++ b/internal/v4l2/v4l2_linux.go
@@ -1,3 +1,5 @@
+//go:build linux && (386 || arm || mipsle || amd64 || arm64)
+
package v4l2
import (