aboutsummaryrefslogtreecommitdiff
path: root/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-05-18 14:42:35 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-05-18 14:42:35 -0400
commite439fcd1e2090ff797b46c80c6264f08ea9e9cfb (patch)
treef03962b1e284b0ae33ed30660b527ec40b95963d /tomo.c
parenta1d18fd4225f67275ea4173532969e4ddf55b39f (diff)
Clean up imports a bit
Diffstat (limited to 'tomo.c')
-rw-r--r--tomo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tomo.c b/tomo.c
index 168b8027..c2a82d3a 100644
--- a/tomo.c
+++ b/tomo.c
@@ -318,7 +318,9 @@ int compile_executable(const char *filename, const char *object_files, module_co
binding_t *main_binding = get_binding(module_code->env, "main");
CORD program = CORD_all(
+ "#include <stdlib.h>\n"
"#include <tomo/tomo.h>\n"
+ "#include <unistd.h>\n"
"#include \"", filename, ".h\"\n"
"\n"
"int main(int argc, char *argv[]) {\n"