diff --git a/src/header/sys_socket/cbindgen.toml b/src/header/sys_socket/cbindgen.toml index 4bf07a96f6..481e75fb95 100644 --- a/src/header/sys_socket/cbindgen.toml +++ b/src/header/sys_socket/cbindgen.toml @@ -1,9 +1,16 @@ -sys_includes = ["stddef.h", "stdint.h", "sys/types.h"] +# bits/iovec.h brings in size_t +sys_includes = ["stddef.h", "stdint.h"] include_guard = "_RELIBC_SYS_SOCKET_H" after_includes = """ -#include // for iovec from sys/uio.h +#include // for iovec from sys/uio.h #include // for sa_family_t -#include // for socklen_t +#include // for socklen_t +#include // for ssize_t from sys/types.h + +// Below required for Non-POSIX ucred struct +#include // for gid_t from sys/types.h +#include // for pid_t from sys/types.h +#include // for uid_t from sys/types.h """ trailer = """ #ifndef _RELIBC_BITS_SYS_SOCKET_H