Skip to content

Commit

Permalink
Fix windows (#14)
Browse files Browse the repository at this point in the history
* Try to fix Win32 headers.

* Take 2.
  • Loading branch information
westy92 authored Sep 16, 2024
1 parent 2580951 commit 0946c28
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 0946c28

Please sign in to comment.