[libc-commits] [libc] ac25a0b - [libc] Have netdb.h carry netinet/in.h (#241697)

via libc-commits libc-commits at lists.llvm.org
Fri Nov 13 21:53:44 PST 2026


Author: Mike Lothian
Date: 2026-11-13T21:53:39-08:00
New Revision: ac25a0ba8e36a3abe908759fc5c889ad3e21bd6e

URL: https://github.com/llvm/llvm-project/commit/ac25a0ba8e36a3abe908759fc5c889ad3e21bd6e
DIFF: https://github.com/llvm/llvm-project/commit/ac25a0ba8e36a3abe908759fc5c889ad3e21bd6e.diff

LOG: [libc] Have netdb.h carry netinet/in.h (#241697)

See https://pubs.opengroup.org/onlinepubs/9799919799/ - which
states that `Inclusion of the <netdb.h> header may also make
visible all symbols from <netinet/in.h>`.

AI disclosure: this patch was written with Claude Code. I reviewed the
change and built it in a full build, and the include and header tests
pass

Assisted-by: Claude

Added: 
    

Modified: 
    libc/include/netdb.yaml

Removed: 
    


################################################################################
diff  --git a/libc/include/netdb.yaml b/libc/include/netdb.yaml
index 84e6827abd8894..f65e1dd4f5a1f4 100644
--- a/libc/include/netdb.yaml
+++ b/libc/include/netdb.yaml
@@ -1,4 +1,7 @@
 header: netdb.h
+public_includes:
+  # POSIX allows <netdb.h> to make the symbols of <netinet/in.h> visible.
+  - netinet/in.h
 standards:
   - posix
 macros:


        


More information about the libc-commits mailing list