From: Thomas Petazzoni Date: Mon, 23 Jan 2017 08:17:15 +0000 (+1300) Subject: gpiod.h: include missing include X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=53a4cefdbe13f432f064e595ff342099b00aaeb8;p=qemu-gpiodev%2Flibgpiod.git gpiod.h: include missing include gpiod.h uses "struct timespec", but forgets to include the header which defines "struct timespec". This causes a build error with the musl C library: In file included from core.c:11:0: ../../include/gpiod.h:232:49: warning: ‘struct timespec’ declared inside parameter list typedef int (*gpiod_event_cb)(int, const struct timespec *, void *); Signed-off-by: Thomas Petazzoni [Bartosz: tweaked the commit message] Signed-off-by: Bartosz Golaszewski --- diff --git a/include/gpiod.h b/include/gpiod.h index 8c5858e..c1f252d 100644 --- a/include/gpiod.h +++ b/include/gpiod.h @@ -22,6 +22,7 @@ #include #include +#include #ifdef __cplusplus extern "C" {