diff --git a/wasmtime-wasi/build.rs b/wasmtime-wasi/build.rs index 1ed59201b4..4145068a57 100644 --- a/wasmtime-wasi/build.rs +++ b/wasmtime-wasi/build.rs @@ -6,7 +6,9 @@ use std::env; use std::path::PathBuf; fn main() { - let dst = Config::new("sandboxed-system-primitives").build(); + let dst = Config::new("sandboxed-system-primitives") + .cflag("-std=gnu99") + .build(); println!("cargo:rustc-link-search=native={}", dst.display()); println!("cargo:rustc-link-lib=static=SandboxedSystemPrimitives");