From 9aeaac5a96bfcbba69c3dd911413659f09c71a9e Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sat, 5 Nov 2022 02:51:27 +0000 Subject: [PATCH] ndi: provide Unix fallback after 3fe9e4a207f8 error[E0425]: cannot find value `LIBRARY_NAME` in this scope --> net/ndi/src/ndisys.rs:336:23 | 336 | path.push(LIBRARY_NAME); | ^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `LIBRARY_NAME` in this scope --> net/ndi/src/ndisys.rs:339:33 | 339 | path::PathBuf::from(LIBRARY_NAME) | ^^^^^^^^^^^^ not found in this scope --- net/ndi/src/ndisys.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ndi/src/ndisys.rs b/net/ndi/src/ndisys.rs index 4b062496..d8643d75 100644 --- a/net/ndi/src/ndisys.rs +++ b/net/ndi/src/ndisys.rs @@ -21,6 +21,8 @@ const LIBRARY_NAME: &str = "Processing.NDI.Lib.x86.dll"; const LIBRARY_NAME: &str = "libndi.so.5"; #[cfg(target_os = "macos")] const LIBRARY_NAME: &str = "libndi.dylib"; +#[cfg(all(unix, not(any(target_os = "linux", target_os = "macos"))))] +const LIBRARY_NAME: &str = "libndi.so"; #[allow(clippy::type_complexity)] struct FFI {