gpiod.h: include missing <time.h> include
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 23 Jan 2017 08:17:15 +0000 (21:17 +1300)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 23 Jan 2017 10:06:24 +0000 (11:06 +0100)
commit53a4cefdbe13f432f064e595ff342099b00aaeb8
treeaba3de06f2cfad963ec7af61e5bb4e987734f86c
parent2bf916d4eb09ce632a1d1dfb189f6a65423bd87e
gpiod.h: include missing <time.h> include

gpiod.h uses "struct timespec", but forgets to include the <time.h>
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 <thomas.petazzoni@free-electrons.com>
[Bartosz: tweaked the commit message]
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
include/gpiod.h