diff --git a/src/stdio/Cargo.toml b/src/stdio/Cargo.toml
index dd1e6126da568d08a816c0bfac0fcaef7faae615..1f2f2794e94243c98145156a658c5ccd28095b98 100644
--- a/src/stdio/Cargo.toml
+++ b/src/stdio/Cargo.toml
@@ -10,7 +10,7 @@ cbindgen = { path = "../../cbindgen" }
 [dependencies]
 errno = { path = "../errno"}
 fcntl = { path = "../fcntl" }
-lazy_static = "*"
+lazy_static = { version = "*", features = ["nightly", "spin_no_std"] }
 platform = { path = "../platform" }
 ralloc = { path = "../../ralloc" }
 string = { path = "../string" }