From f0e3574f307c792ee88526554febc0e874a9db41 Mon Sep 17 00:00:00 2001 From: auronandace Date: Mon, 13 Apr 2026 10:59:23 +0100 Subject: [PATCH] remove sys_socket include from ifaddrs and netdb --- src/header/ifaddrs/cbindgen.toml | 3 ++- src/header/netdb/cbindgen.toml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/header/ifaddrs/cbindgen.toml b/src/header/ifaddrs/cbindgen.toml index f7d97cd169..b507c6f75f 100644 --- a/src/header/ifaddrs/cbindgen.toml +++ b/src/header/ifaddrs/cbindgen.toml @@ -1,4 +1,5 @@ -sys_includes = ["features.h", "netinet/in.h", "sys/socket.h"] +# netinet/in.h brings in sys/socket.h +sys_includes = ["features.h", "netinet/in.h"] include_guard = "_RELIBC_IFADDRS_H" language = "C" style = "Tag" diff --git a/src/header/netdb/cbindgen.toml b/src/header/netdb/cbindgen.toml index acba8b8749..e5767e164f 100644 --- a/src/header/netdb/cbindgen.toml +++ b/src/header/netdb/cbindgen.toml @@ -1,4 +1,5 @@ -sys_includes = ["sys/socket.h", "netinet/in.h", "features.h"] +# netinet/in.h brings in sys/socket.h +sys_includes = ["netinet/in.h", "features.h"] include_guard = "_RELIBC_NETDB_H" trailer = """ #define h_errno (*__h_errno_location())