Re: [PATCH] libgpiod: Fix build failure with musl

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

 



On 09-12-21, 16:28, Viresh Kumar 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.
> 
> Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
> ---
>  lib/internal.h    |  1 +
>  lib/musl-compat.h | 18 ++++++++++++++++++
>  2 files changed, 19 insertions(+)
>  create mode 100644 lib/musl-compat.h

This one is scrapped, please have a look at V2.

-- 
viresh



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux