diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2022-11-05 05:51:27 +0300 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2022-11-05 05:51:28 +0300 |
commit | 9aeaac5a96bfcbba69c3dd911413659f09c71a9e (patch) | |
tree | 419d0397a679c7ece2a554d7dccfabefe38a9ef5 /net/ndi | |
parent | 7ac29827d2bf1cfa04a362e184def13cff89cc50 (diff) |
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
Diffstat (limited to 'net/ndi')
-rw-r--r-- | net/ndi/src/ndisys.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |