diff --git a/Cargo.toml b/Cargo.toml index ed02b12..f9bf94f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,8 +11,8 @@ keywords = ["magickwand", "imagemagick"] build = "build.rs" [dependencies] -libc = ">=0.2" +libc = "0.2.70" [build-dependencies] -bindgen = "0.52.0" -pkg-config = ">=0.3" +bindgen = "0.53.2" +pkg-config = "0.3.17" diff --git a/build.rs b/build.rs index 76ca580..65115f3 100644 --- a/build.rs +++ b/build.rs @@ -132,6 +132,7 @@ fn main() { .ctypes_prefix("libc") .raw_line("extern crate libc;") .header(gen_h_path.to_str().unwrap()) + .size_t_is_usize(true) .parse_callbacks(Box::new(ignored_macros)) .blacklist_type("timex") .blacklist_function("clock_adjtime");