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) """