You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I am getting this the wrong way round - see also #1 and the problem is the headers that include kernel ones for these. The new (uapi) headers in linux git head now have for linux/input.h:
are the headers consistent with each other so they can all be included together, so they all need to include the same headers consistently (which they do not now)
do any of the userspace includes define anything inconsistent with the kernel ABI thus making the ABI incorrect.
Making the kernel headers complete and self contained is great as a definition of the ABI, but makes them harder to use in a program that needs other headers too.
So you either use sys/ioctl.h everywhere and remove linux/ioctl.h from the kernel headers, or you use linux/ioctl.h everywhere and never include sys/ioctl.h - in this case these headers define the same macros (consistently).
The issue of whether userspace and the kernel conflict is somewhat unclear. With glibc I suspect the exercise may well be impossible, like so many things. With Musl, there should be very few places where kernel headers conflict and so the linux/ one needs to be used exclusively.
So I think the thing to do is upgrade to 3.7+ #7 and then attempt to apply fixes to use /sys/ headers where needed (in a branch) and see how that looks in Musl (and glibc).
The text was updated successfully, but these errors were encountered: