summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-20 14:30:17 -0400
committerIan Moffett <ian@osmora.org>2025-10-20 14:30:17 -0400
commit380e95ae99e5c164b89d4a79ad27f8092e706468 (patch)
tree60cab503d191f3525faefc0ed40d71c7297ac9c4 /src
parentf8411d1f1a4765ce38e63f4b3304d72cbfddad6f (diff)
sys: mman: Include proper type headers
- For userland, stddef.h - Globally, sys/types.h Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src')
-rw-r--r--src/sys/include/sys/mman.h4
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)