diff options
Diffstat (limited to 'src/user/app/tests')
-rw-r--r-- | src/user/app/tests/kernel/misc.c | 1 | ||||
-rw-r--r-- | src/user/app/tests/stress.c | 1 | ||||
-rw-r--r-- | src/user/app/tests/tests.h | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/user/app/tests/kernel/misc.c b/src/user/app/tests/kernel/misc.c index 01e041d..e22cba2 100644 --- a/src/user/app/tests/kernel/misc.c +++ b/src/user/app/tests/kernel/misc.c @@ -3,6 +3,7 @@ #include <camellia/flags.h> #include <camellia/syscalls.h> #include <string.h> +#include <unistd.h> static void test_fault_kill(void) { if (!fork()) { /* invalid memory access */ diff --git a/src/user/app/tests/stress.c b/src/user/app/tests/stress.c index 9db752f..1df462a 100644 --- a/src/user/app/tests/stress.c +++ b/src/user/app/tests/stress.c @@ -1,6 +1,7 @@ #include "tests.h" #include <camellia/flags.h> #include <camellia/syscalls.h> +#include <stdlib.h> #include <unistd.h> static void run_forked(void (*fn)()) { diff --git a/src/user/app/tests/tests.h b/src/user/app/tests/tests.h index d092115..b47e9b9 100644 --- a/src/user/app/tests/tests.h +++ b/src/user/app/tests/tests.h @@ -1,7 +1,7 @@ #pragma once #include <camellia/syscalls.h> #include <stdio.h> -#include <unistd.h> +#include <stdlib.h> #define TMPFILEPATH "/tmp/.test_internal" |