]> rtime.felk.cvut.cz Git - can-utils.git/commitdiff
log2asc: include sys/time.h
authorYegor Yefremov <yegorslists@googlemail.com>
Tue, 14 Jul 2015 19:24:37 +0000 (21:24 +0200)
committerYegor Yefremov <yegorslists@googlemail.com>
Wed, 22 Jul 2015 19:12:44 +0000 (21:12 +0200)
Without this patch compilation against musl C library
breaks, because struct timeval cannot be found.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
log2asc.c

index 29d13e804fcf658f34ed579daf18e5e906a11f62..8fb88a9bb5f3e1aedc9d3ec7b82cb06e02c0a153 100644 (file)
--- a/log2asc.c
+++ b/log2asc.c
@@ -48,6 +48,7 @@
 #include <unistd.h>
 
 #include <net/if.h>
+#include <sys/time.h>
 #include <linux/can.h>
 
 #include "lib.h"