diff --git a/lib.rs b/lib.rs index fc6ab1d..f76885c 100644 --- a/lib.rs +++ b/lib.rs @@ -7,7 +7,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[link(name = "xlib", vers = "0.1")]; +#[crate_id = "github.com/mozilla-servo/rust-xlib#xlib:0.1"]; +#[crate_type = "lib"]; #[feature(globs)]; diff --git a/xlib.rs b/xlib.rs index 84c5a9d..37e5df0 100644 --- a/xlib.rs +++ b/xlib.rs @@ -7,8 +7,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -/* automatically generated by rust-bindgen */ - #[allow(non_uppercase_statics)]; use std::libc::*; @@ -1078,7 +1076,7 @@ pub struct XVisualInfo { pub static ZPixmap: c_int = 2; // depth == drawable depth -#[link_args="-lX11"] +#[link(name="X11")] extern { pub fn _Xmblen(arg0: *c_char, arg1: c_int) -> c_int;