From 3fc2be3e6edbddb14d93a845c9d18e2c60b3da86 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Fri, 11 Oct 2024 20:10:04 -0500 Subject: [PATCH] Use _Exit since it is standard in c99 --- src/core/os.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/os.c b/src/core/os.c index 61c02981..c814ef3a 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -27,9 +27,10 @@ #include "gc.h" #endif +#include + #ifndef JANET_REDUCED_OS -#include #include #include #include @@ -251,7 +252,7 @@ JANET_CORE_FN(os_exit, } janet_deinit(); if (argc >= 2 && janet_truthy(argv[1])) { - _exit(status); + _Exit(status); } else { exit(status); }