add include guard for the moved bits

This commit is contained in:
auronandace
2026-04-13 11:29:13 +01:00
parent 7cf6933f81
commit 8945b07415
+5
View File
@@ -5,6 +5,9 @@ after_includes = """
#include <bits/socklen-t.h> // 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"