From 0946c2815499bafe4339a6b31b04096551a10bfb Mon Sep 17 00:00:00 2001 From: Seth Westphal Date: Sun, 15 Sep 2024 23:40:31 -0500 Subject: [PATCH] Fix windows (#14) * Try to fix Win32 headers. * Take 2. --- build.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build.rs b/build.rs index 487d1d2..c00f32c 100644 --- a/build.rs +++ b/build.rs @@ -73,9 +73,7 @@ fn main() { .define("HAVE_GETTIMEOFDAY", None); if env::var_os("CARGO_CFG_WINDOWS").is_some() { - build = build - .define("HAVE_DIRENT_H", Some("0")) - .define("HAVE_UNISTD_H", Some("0")); + build = build.define("HAVE_IO_H", None); } else { // extra parameters to use in non-Windows println!("cargo:rustc-link-lib=m");