Bug 29354

Summary: netinet/in.h redefines in_addr if linux/in.h is included first
Product: glibc Reporter: daan.j.demeyer <daan.j.demeyer>
Component: libcAssignee: Not yet assigned to anyone <unassigned>
Status: UNCONFIRMED ---    
Severity: normal CC: drepper.fsp
Priority: P2    
Version: 2.36   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description daan.j.demeyer@gmail.com 2022-07-11 12:55:48 UTC
netinet/in.h already has logic to not redefine in6_addr if linux/in6.h has already been included. It'd be great if we could do the same for in_addr.

To reproduce, try to compile a source file that includes linux/in.h followed by netinet/in.h