Skip to content

Commit 0844fd3

Browse files
committed
Fix loading
1 parent 3551844 commit 0844fd3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ni-fpga-sys/src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ pub type Status = i32;
4848

4949
use std::{ffi::c_char, fmt};
5050

51-
use dlopen::wrapper::{Container, WrapperApi};
51+
use dlopen::{
52+
utils::platform_file_name,
53+
wrapper::{Container, WrapperApi},
54+
};
5255

5356
use dlopen_derive::WrapperApi;
5457

@@ -168,7 +171,7 @@ pub struct NiFpgaApi {
168171

169172
impl NiFpgaApi {
170173
pub fn load() -> Result<NiFpgaApiContainer, DlOpenError> {
171-
match unsafe { Container::load("NiFpga") } {
174+
match unsafe { Container::load(platform_file_name("NiFpga")) } {
172175
Ok(api) => Ok(api),
173176
Err(err) => Err(DlOpenError(err)),
174177
}

0 commit comments

Comments
 (0)