Redefinition of struct in6_addr in <netinet/in.h> and <linux/in6.h>

Rich Felker dalias@aerifal.cx
Wed Jan 16 20:42:00 GMT 2013


On Wed, Jan 16, 2013 at 02:06:06PM +0800, Cong Wang wrote:
> (Cc'ing some glibc developers...)
> 
> Hello,
> 
> In glibc source file inet/netinet/in.h and kernel source file
> include/uapi/linux/in6.h, both define struct in6_addr, and both are
> visible to user applications. Thomas reported a conflict below.
> 
> So, how can we handle this? /me is wondering why we didn't see this
> before.

It's a bug for the kernel uapi headers to define any type, macro, or
structure tag that's supposed to be defined by libc.

Rich



More information about the Libc-alpha mailing list