aboutsummaryrefslogtreecommitdiff
path: root/tomo.c
diff options
context:
space:
mode:
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"