]> git.corax.cc Git - corax/commitdiff
kernel/core: Include <sys/wait.h> from main.c
authorMatthias Kruk <m@m10k.eu>
Sat, 21 Mar 2020 09:13:40 +0000 (18:13 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 21 Mar 2020 09:13:40 +0000 (18:13 +0900)
kernel/core/main.c

index 675cc1edd06872bbaa76d80e08124f1e9d9a7ae0..592b64553fa7bdd54417f37dcd54a53584bd56db 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This file is part of the Corax operating system.
- * Copyright (C) 2016 Matthias Kruk
+ * Copyright (C) 2016-2020 Matthias Kruk
  *
  * Corax is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -26,6 +26,8 @@
 #include <crxstd.h>
 #include <unistd.h>
 #include <sched.h>
+#include <sys/types.h>
+#include <sys/wait.h>
 
 void cpu_debug(void);
 int arch_init(void*);
@@ -105,7 +107,6 @@ static void _init(void)
 {
        pid_t pid;
        int err;
-       int i;
 
        /*
         * instead of something like /sbin/init, this process will behave more like the process daemon
@@ -224,7 +225,6 @@ int corax(void *mb_info, u32_t magic)
                }
        }
 */
-
        err = process_create(&proc, PID_ANY, 0, (void*)_idle);
 
        if(err < 0) {