It seems that there's no guarantee that 'struct timespec' will be available via <sys/time.h>, so include <time.h> directly [1] [1] https://libc-alpha.sourceware.narkive.com/yb0aXzSp/defining-timespec-in-time-h-or-sys-time-h#post3 --- tools/btpclient.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/btpclient.c b/tools/btpclient.c index bdfff5df83c2..055270edb51b 100644 --- a/tools/btpclient.c +++ b/tools/btpclient.c @@ -17,6 +17,7 @@ #include <assert.h> #include <getopt.h> #include <signal.h> +#include <time.h> #include <ell/ell.h> -- 2.43.0