[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#429064: linux-libc-dev: <linux/types.h> conflicts with <sys/ustat.h>



Bastian Blank <waldi@debian.org> writes:

>> linux-libc-dev should not directly export a kernel structure. Either
>> remove it or use #ifdef __KERNEL__, but don't bother us with that.
>
> It is part of the userspace interface which is redefined in
> bits/ustat.h.
>
> Anyway, it is no bug in the kernel to export its userspace interface.

I think "#ifdef __KERNEL__" is the traditional approach here.  It's
already used for a number of userspace interfaces -- struct sockaddr in
<linux/socket.h>, S_* in <linux/stat.h> -- and it won't break existing
code.

Thanks,

Matej



Reply to: