From 84c2bd5ae2e3d14fef166539ece3d4be9ad098c6 Mon Sep 17 00:00:00 2001 From: auronandace Date: Tue, 12 May 2026 12:03:55 +0100 Subject: [PATCH] remove sys_types from sys_socket header --- src/header/sys_socket/cbindgen.toml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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