diff --git a/src/header/dirent/cbindgen.toml b/src/header/dirent/cbindgen.toml index ca377a4cef..29bbd91edb 100644 --- a/src/header/dirent/cbindgen.toml +++ b/src/header/dirent/cbindgen.toml @@ -2,11 +2,17 @@ # # Spec quotations relating to includes: # - "The header shall define the ino_t, reclen_t, size_t, and ssize_t types as described in ." -sys_includes = ["sys/types.h"] +sys_includes = [] include_guard = "_RELIBC_DIRENT_H" language = "C" style = "Both" after_includes = """ +#include // for size_t from sys/types.h +#include // for ssize_t from sys/types.h +#include // for ino_t from sys/types.h +#include // for reclen_t from sys/types.h +// for extra Non-POSIX field for dirent and posix_dent +#include // for off_t from sys/types.h // Shamelessly stolen from musl // Macros to convert between struct dirent and struct stat types.