diff options
author | Andrzej Janik <[email protected]> | 2021-01-16 21:43:06 +0100 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-01-16 21:43:06 +0100 |
commit | 617afd586bc4fd5927d97c975625e512d594deb5 (patch) | |
tree | 7b34d0d7b8944c28fd1c3ecbff1af7ca5ef6767b | |
parent | f99705c5627bd469ef4b9cc2f59f1186d99b6f50 (diff) | |
download | ZLUDA-617afd586bc4fd5927d97c975625e512d594deb5.tar.gz ZLUDA-617afd586bc4fd5927d97c975625e512d594deb5.zip |
Fix warningskernel_dump
-rw-r--r-- | detours-sys/build.rs | 4 | ||||
-rw-r--r-- | zluda_dump/src/os_unix.rs | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/detours-sys/build.rs b/detours-sys/build.rs index 991f062..20bb342 100644 --- a/detours-sys/build.rs +++ b/detours-sys/build.rs @@ -1,10 +1,8 @@ -use std::error::Error; - #[cfg(not(target_os = "windows"))] fn main() {} #[cfg(target_os = "windows")] -fn main() -> Result<(), Box<dyn Error>> { +fn main() -> Result<(), Box<dyn std::error::Error>> { windows::main_impl() } diff --git a/zluda_dump/src/os_unix.rs b/zluda_dump/src/os_unix.rs index f3984cb..b3d9343 100644 --- a/zluda_dump/src/os_unix.rs +++ b/zluda_dump/src/os_unix.rs @@ -1,10 +1,9 @@ -use libc::{dlopen, dlsym};
use std::ffi::{c_void, CStr};
const NVCUDA_DEFAULT_PATH: &'static [u8] = b"/usr/lib/x86_64-linux-gnu/libcuda.so.1\0";
pub unsafe fn load_cuda_library() -> *mut c_void {
- dlopen(
+ libc::dlopen(
NVCUDA_DEFAULT_PATH.as_ptr() as *const _,
libc::RTLD_LOCAL | libc::RTLD_NOW,
)
|