libc-test: allow deprecated functions
glibc-2.24 deprecates readdir_r() and readdir64_r()
diff --git a/libc-test/build-generated.rs b/libc-test/build-generated.rs
index 41b5627..a51c0e3 100644
--- a/libc-test/build-generated.rs
+++ b/libc-test/build-generated.rs
@@ -10,6 +10,7 @@
.flag("-Wall")
.flag("-Wextra")
.flag("-Werror")
+ .flag("-Wno-deprecated-declarations")
.flag("-Wno-type-limits")
.compile("liball.a");
}
diff --git a/libc-test/build.rs b/libc-test/build.rs
index a9ac4fb..553dde2 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -64,6 +64,8 @@
cfg.header("ws2tcpip.h");
}
} else {
+ cfg.flag("-Wno-deprecated-declarations");
+
cfg.header("ctype.h");
cfg.header("dirent.h");
if openbsd {
diff --git a/libc-test/generate-files/Cargo.lock b/libc-test/generate-files/Cargo.lock
index 7b23e55..662fe8a 100644
--- a/libc-test/generate-files/Cargo.lock
+++ b/libc-test/generate-files/Cargo.lock
@@ -22,7 +22,7 @@
[[package]]
name = "ctest"
version = "0.1.0"
-source = "git+https://github.com/alexcrichton/ctest#7703b51086cce2d9a703b103d0695b36653b8cab"
+source = "git+https://github.com/alexcrichton/ctest#a6becb6d7fd23d9863cba86eac31d1ffc4082734"
dependencies = [
"gcc 0.3.21 (registry+https://github.com/rust-lang/crates.io-index)",
"syntex_syntax 0.19.1 (registry+https://github.com/rust-lang/crates.io-index)",