remove sys_types from sys_socket header

This commit is contained in:
auronandace
2026-05-12 12:03:55 +01:00
parent aaaabaded3
commit 84c2bd5ae2
+10 -3
View File
@@ -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 <bits/iovec.h> // for iovec from sys/uio.h
#include <bits/iovec.h> // for iovec from sys/uio.h
#include <bits/safamily-t.h> // for sa_family_t
#include <bits/socklen-t.h> // for socklen_t
#include <bits/socklen-t.h> // for socklen_t
#include <bits/ssize-t.h> // for ssize_t from sys/types.h
// Below required for Non-POSIX ucred struct
#include <bits/gid-t.h> // for gid_t from sys/types.h
#include <bits/pid-t.h> // for pid_t from sys/types.h
#include <bits/uid-t.h> // for uid_t from sys/types.h
"""
trailer = """
#ifndef _RELIBC_BITS_SYS_SOCKET_H