diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-20 14:30:17 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-20 14:30:17 -0400 |
commit | 380e95ae99e5c164b89d4a79ad27f8092e706468 (patch) | |
tree | 60cab503d191f3525faefc0ed40d71c7297ac9c4 | |
parent | f8411d1f1a4765ce38e63f4b3304d72cbfddad6f (diff) |
sys: mman: Include proper type headers
- For userland, stddef.h
- Globally, sys/types.h
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | src/sys/include/sys/mman.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys/include/sys/mman.h b/src/sys/include/sys/mman.h index b688fdd..0ad4959 100644 --- a/src/sys/include/sys/mman.h +++ b/src/sys/include/sys/mman.h @@ -30,7 +30,11 @@ #ifndef _SYS_MMAN_H_ #define _SYS_MMAN_H_ 1 +#include <sys/types.h> #include <sys/param.h> +#if !defined(_KERNEL) +#include <stddef.h> +#endif /* !_KERNEL */ #define PROT_READ BIT(0) #define PROT_WRITE BIT(1) |