From 522d88a5874e77c7dcb13d751a140a0325076051 Mon Sep 17 00:00:00 2001 From: auronandace Date: Mon, 27 Apr 2026 09:15:17 +0100 Subject: [PATCH] add include guard to cbindgen trailer for netinet_in --- src/header/netinet_in/cbindgen.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/header/netinet_in/cbindgen.toml b/src/header/netinet_in/cbindgen.toml index d2556b1678..d88dc7fd31 100644 --- a/src/header/netinet_in/cbindgen.toml +++ b/src/header/netinet_in/cbindgen.toml @@ -19,8 +19,11 @@ sys_includes = ["sys/types.h", "sys/socket.h"] after_includes = """ #include // for htonl, htons, ntohl, ntohs """ -include_guard = "_NETINET_IN_H" +include_guard = "_RELIBC_NETINET_IN_H" trailer = """ +#ifndef _RELIBC_BITS_NETINET_IN_H +#define _RELIBC_BITS_NETINET_IN_H + extern const struct in6_addr in6addr_any; extern const struct in6_addr in6addr_loopback; #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } } @@ -93,6 +96,8 @@ extern const struct in6_addr in6addr_loopback; #define IN_EXPERIMENTAL(a) ((((in_addr_t)(a)) & 0xe0000000) == 0xe0000000) #define IN_BADCLASS(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xf0000000) // } from musl + +#endif // _RELIBC_BITS_NETINET_IN_H """ language = "C" style = "Tag"