From a10aabfcd52f702057316018cd7847ab2bfe4aa1 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Tue, 26 May 2026 21:32:27 +0000 Subject: we're bringing kjarna back and not doing the crazy stuff with trying to have task management during efi. that was a bit extra. --- api/posix/sys/mman.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'api/posix') diff --git a/api/posix/sys/mman.h b/api/posix/sys/mman.h index dd8d6f5..d347c76 100644 --- a/api/posix/sys/mman.h +++ b/api/posix/sys/mman.h @@ -1,6 +1,12 @@ #pragma once -#define MAP_FAILED ((void *) 1) +#include + +#include "types.h" + +#define MAP_FAILED ((void *) -1) + +#define MAP_ANONYMOUS (1 >> 0) void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); int munmap(void *addr, size_t length); -- cgit v1.3.1-1-g115d