From a12baf385885aa388a0d9aa87c347f45d01facad Mon Sep 17 00:00:00 2001 From: auronandace Date: Mon, 18 May 2026 10:21:00 +0100 Subject: [PATCH] remove sys_types from sys_mman header --- src/header/sys_mman/cbindgen.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/header/sys_mman/cbindgen.toml b/src/header/sys_mman/cbindgen.toml index 63f6299c7e..704e2553ce 100644 --- a/src/header/sys_mman/cbindgen.toml +++ b/src/header/sys_mman/cbindgen.toml @@ -4,9 +4,12 @@ # - "The header shall define the mode_t, off_t, and size_t types as described in ." # - "The header shall define the following symbolic constants as described in " # - "Inclusion of the header may make visible all symbols from the header." -sys_includes = ["sys/types.h", "fcntl.h"] +# +# fcntl.h brings in mode_t and off_t +sys_includes = ["fcntl.h"] include_guard = "_RELIBC_SYS_MMAN_H" after_includes = """ +#include // for size_t from sys/types.h #define MAP_FAILED ((void *) -1) """