diff --git a/src/header/stdio/cbindgen.toml b/src/header/stdio/cbindgen.toml index 7a6860140b..bd89ea3b36 100644 --- a/src/header/stdio/cbindgen.toml +++ b/src/header/stdio/cbindgen.toml @@ -1,4 +1,9 @@ -sys_includes = ["stdarg.h", "stddef.h", "stdint.h", "sys/types.h", "features.h"] +# stddef.h brings in size_t +sys_includes = ["stdarg.h", "stddef.h", "stdint.h", "features.h"] +after_includes = """ +#include // for off_t from sys/types.h +#include // for ssize_t from sys/types.h +""" include_guard = "_RELIBC_STDIO_H" trailer = """ #ifndef _RELIBC_BITS_STDIO_H