1
0
Fork 0
remarkable-linux/tools/gpio
Joel Stanley efe3f94f83 tools/gpio: Fix build error with musl libc
commit 1696784eb7 upstream.

The GPIO tools build fails when using a buildroot toolchain that uses musl
as it's C library:

arm-broomstick-linux-musleabi-gcc -Wp,-MD,./.gpio-event-mon.o.d \
 -Wp,-MT,gpio-event-mon.o -O2 -Wall -g -D_GNU_SOURCE \
 -Iinclude -D"BUILD_STR(s)=#s" -c -o gpio-event-mon.o gpio-event-mon.c
gpio-event-mon.c:30:6: error: unknown type name ‘u_int32_t’; did you mean ‘uint32_t’?
      u_int32_t handleflags,
      ^~~~~~~~~
      uint32_t

The glibc headers installed on my laptop include sys/types.h in
unistd.h, but it appears that musl does not.

Fixes: 97f69747d8 ("tools/gpio: add the gpio-event-mon tool")
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-03 17:05:34 +01:00
..
Build tools/gpio: move to tools buildsystem 2016-06-23 11:07:13 +02:00
Makefile tools/gpio: add install section 2016-06-23 11:07:13 +02:00
gpio-event-mon.c tools/gpio: Fix build error with musl libc 2018-02-03 17:05:34 +01:00
gpio-hammer.c tools/gpio: add the gpio-hammer tool 2016-06-15 09:29:04 +02:00
gpio-utils.c tools/gpio: create GPIO tools 2016-02-09 11:09:48 +01:00
gpio-utils.h gpio: add userspace ABI for GPIO line information 2016-02-19 09:48:46 +01:00
lsgpio.c tools/gpio: Add missing initialization of device_name 2016-03-31 11:51:30 +02:00