summaryrefslogtreecommitdiffstatshomepage
path: root/unix/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/main.c')
-rw-r--r--unix/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/main.c b/unix/main.c
index cd45e3be86..5ca8115368 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -242,7 +242,9 @@ int main(int argc, char **argv) {
file_init();
rawsocket_init();
+#if MICROPY_MOD_FFI
ffi_init();
+#endif
// Here is some example code to create a class and instance of that class.
// First is the Python, then the C code.