From 8945b07415161a7f3faa94978e621e99735d1da2 Mon Sep 17 00:00:00 2001 From: auronandace Date: Mon, 13 Apr 2026 11:29:13 +0100 Subject: [PATCH] add include guard for the moved bits --- src/header/sys_socket/cbindgen.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/header/sys_socket/cbindgen.toml b/src/header/sys_socket/cbindgen.toml index 03207837a5..42474483a2 100644 --- a/src/header/sys_socket/cbindgen.toml +++ b/src/header/sys_socket/cbindgen.toml @@ -5,6 +5,9 @@ after_includes = """ #include // for socklen_t """ trailer = """ +#ifndef _RELIBC_BITS_SYS_SOCKET_H +#define _RELIBC_BITS_SYS_SOCKET_H + struct sockaddr_storage { sa_family_t ss_family; char __ss_padding[128-sizeof(long)-sizeof(sa_family_t)]; @@ -26,6 +29,8 @@ struct sockaddr_storage { #define CMSG_SPACE(len) (CMSG_ALIGN (len) + CMSG_ALIGN (sizeof (struct cmsghdr))) #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len)) // } from musl, license MIT + +#endif // _RELIBC_BITS_SYS_SOCKET_H """ language = "C" style = "Tag"