aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--detours-sys/build.rs4
-rw-r--r--zluda_dump/src/os_unix.rs3
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,
)