Bug 29354 - netinet/in.h redefines in_addr if linux/in.h is included first
Summary: netinet/in.h redefines in_addr if linux/in.h is included first
Status: UNCONFIRMED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.36
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-11 12:55 UTC by daan.j.demeyer@gmail.com
Modified: 2022-07-11 12:55 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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