From: Tulio A M Mendes Date: Fri, 6 Feb 2026 00:54:33 +0000 (-0300) Subject: kernel/mm: fix WSL build (cross-compiler guard, utils, heap includes) X-Git-Url: https://projects.tadryanom.me/sitemap.xml?a=commitdiff_plain;h=84eff4d93f61a86c1c3354660e66d7f86483e61d;p=AdrOS.git kernel/mm: fix WSL build (cross-compiler guard, utils, heap includes) --- diff --git a/src/kernel/main.c b/src/kernel/main.c index aa54bd7..ebd101a 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -22,7 +22,7 @@ /* Check if the compiler thinks we are targeting the wrong operating system. */ #if defined(__linux__) -#error "You are not using a cross-compiler, you will run into trouble" +#warning "You are not using a cross-compiler, you may run into trouble" #endif /* diff --git a/src/kernel/utils.c b/src/kernel/utils.c index a5b35de..63f6822 100644 --- a/src/kernel/utils.c +++ b/src/kernel/utils.c @@ -107,12 +107,6 @@ int atoi(const char* str) { return sign * res; } -char* strcpy(char* dest, const char* src) { - char* temp = dest; - while ((*dest++ = *src++)); - return temp; -} - void itoa_hex(uint32_t num, char* str) { const char hex_chars[] = "0123456789ABCDEF"; str[0] = '0'; diff --git a/src/mm/heap.c b/src/mm/heap.c index e147716..d958e9b 100644 --- a/src/mm/heap.c +++ b/src/mm/heap.c @@ -1,6 +1,7 @@ #include "heap.h" #include "uart_console.h" #include "pmm.h" +#include "vmm.h" #include "spinlock.h" #include "hal/cpu.h" #include