add include guard for the moved bits
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user