move netdb bits to cbindgen

This commit is contained in:
auronandace
2026-03-28 17:44:18 +00:00
parent 47acf75398
commit 306cd8b68f
2 changed files with 4 additions and 16 deletions
-15
View File
@@ -1,15 +0,0 @@
#ifndef _BITS_NETDB_H
#define _BITS_NETDB_H
#ifdef __cplusplus
extern "C" {
#endif
#define h_errno (*__h_errno_location())
# define h_addr h_addr_list[0] /* Address, for backward compatibility.*/
#ifdef __cplusplus
} // extern "C"
#endif
#endif /* _BITS_NETDB_H */
+4 -1
View File
@@ -1,6 +1,9 @@
sys_includes = ["sys/socket.h", "netinet/in.h", "features.h"]
include_guard = "_RELIBC_NETDB_H"
trailer = "#include <bits/netdb.h>"
trailer = """
#define h_errno (*__h_errno_location())
# define h_addr h_addr_list[0] /* Address, for backward compatibility.*/
"""
language = "C"
style = "Tag"
no_includes = true