On Thu, Dec 9, 2021 at 4:17 PM Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote: > > On Thu, Dec 9, 2021 at 5:15 PM Viresh Kumar <viresh.kumar@xxxxxxxxxx> wrote: > > > > Musl defines the _IO*() macros in the files included via <sys/ioctl.h> > > and hence we get redefinition errors during build as <linux/ioctl.h>, > > included via <uapi/gpio.h>, defines them again. > > > > Fix this by undefining the macros between both the includes, document it > > all in musl-compat.h as well. > > Is it only me who wonders why it should be fixed here? > > -- > With Best Regards, > Andy Shevchenko No, I'm wondering the same. I see these musl compat issues being "fixed" in half the embedded linux projects. Looks to me musl introduces these issues, doesn't it? Any reason for it? Can it be fixed in the library? Bart