remove sys_types from sys_mman header

This commit is contained in:
auronandace
2026-05-18 10:21:00 +01:00
parent 6dc57272a7
commit a12baf3858
+4 -1
View File
@@ -4,9 +4,12 @@
# - "The <sys/mman.h> header shall define the mode_t, off_t, and size_t types as described in <sys/types.h>."
# - "The <sys/mman.h> header shall define the following symbolic constants as described in <fcntl.h>"
# - "Inclusion of the <sys/mman.h> header may make visible all symbols from the <fcntl.h> 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 <bits/size-t.h> // for size_t from sys/types.h
#define MAP_FAILED ((void *) -1)
"""