From 93502e0cdafb0e777472acb66ade2fb93ef976f0 Mon Sep 17 00:00:00 2001 From: Lucas Kent Date: Fri, 24 May 2019 21:10:31 +1000 Subject: [PATCH] Fix warning (#880) --- src/platform_impl/linux/dlopen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_impl/linux/dlopen.rs b/src/platform_impl/linux/dlopen.rs index d9ad3fb2..96547481 100644 --- a/src/platform_impl/linux/dlopen.rs +++ b/src/platform_impl/linux/dlopen.rs @@ -6,7 +6,7 @@ use std::os::raw::{c_void, c_char, c_int}; pub const RTLD_LAZY: c_int = 0x001; pub const RTLD_NOW: c_int = 0x002; -#[link="dl"] +#[link(name ="dl")] extern { pub fn dlopen(filename: *const c_char, flag: c_int) -> *mut c_void; pub fn dlerror() -> *mut c_char;