add include guard to netdb cbindgen trailer

This commit is contained in:
auronandace
2026-04-27 08:51:26 +01:00
parent 9fdb120b2c
commit 1544554ceb
+6 -1
View File
@@ -2,8 +2,13 @@
sys_includes = ["netinet/in.h", "features.h"]
include_guard = "_RELIBC_NETDB_H"
trailer = """
#ifndef _RELIBC_BITS_NETDB_H
#define _RELIBC_BITS_NETDB_H
#define h_errno (*__h_errno_location())
# define h_addr h_addr_list[0] /* Address, for backward compatibility.*/
#define h_addr h_addr_list[0] /* Address, for backward compatibility.*/
#endif // _RELIBC_BITS_NETDB_H
"""
language = "C"
style = "Tag"