--- a/ext/ffi/Cargo.toml
+++ b/ext/ffi/Cargo.toml
@@ -16,7 +16,7 @@
 [dependencies]
 deno_core = { version = "0.114.0", path = "../../core" }
 dlopen = "0.1.8"
-libffi = "2.0.0"
+libffi = { version = "2.0.0", features = ["system"] }
 serde = { version = "1.0.129", features = ["derive"] }
 tokio = { version = "1.10.1", features = ["full"] }
 
