summaryrefslogtreecommitdiff
path: root/multimedia/t-rec/patches/patch-src_main.rs
blob: cc5104d392365e41652dde5c80087ba401226487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-src_main.rs,v 1.1 2022/10/06 07:43:28 pin Exp $

Allow building on NetBSD

--- src/main.rs.orig	2022-10-04 22:21:07.000000000 +0000
+++ src/main.rs
@@ -5,7 +5,7 @@ mod generators;
 mod tips;
 
 mod capture;
-#[cfg(target_os = "linux")]
+#[cfg(any(target_os = "linux", target_os = "netbsd"))]
 mod linux;
 #[cfg(target_os = "macos")]
 mod macos;
@@ -13,7 +13,7 @@ mod utils;
 #[cfg(target_os = "windows")]
 mod win;
 
-#[cfg(target_os = "linux")]
+#[cfg(any(target_os = "linux", target_os = "netbsd"))]
 use crate::linux::*;
 #[cfg(target_os = "macos")]
 use crate::macos::*;