summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2018-11-21 16:43:24 +0900
committerMike Hommey <mh@glandium.org>2018-11-21 16:43:24 +0900
commitfdb9726d42249171560e23b98d16d8f234a9a338 (patch)
treeea0086d39b74978a17009afa8f728b999ce2745a /build.rs
parent4d9a03e391a1f6626949e870e5c49e14d8944abb (diff)
downloadrust-libc-fdb9726d42249171560e23b98d16d8f234a9a338.tar.gz
core::ffi::c_void is available since rustc 1.30
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index aa56ea0545..1852ed2790 100644
--- a/build.rs
+++ b/build.rs
@@ -7,7 +7,7 @@ fn main() {
* If `core::ffi::c_void` exists, libc can just re-export it. Otherwise, it
* must define an incompatible type to retain backwards-compatibility.
*/
- if rustc_minor_version().expect("Failed to get rustc version") >= 31 {
+ if rustc_minor_version().expect("Failed to get rustc version") >= 30 {
println!("cargo:rustc-cfg=core_cvoid");
}
}