summaryrefslogtreecommitdiffstats
path: root/include/monotonic.h
diff options
context:
space:
mode:
authorKarel Zak2015-03-05 13:32:53 +0100
committerKarel Zak2015-03-05 13:32:53 +0100
commitb9dedd3d34cb6d340c7dc229b598d4580c704c8c (patch)
tree3094c079523e62c3d98555fbaa22668181a159e6 /include/monotonic.h
parentagetty: support /usr/lib/os-release too (diff)
downloadkernel-qcow2-util-linux-b9dedd3d34cb6d340c7dc229b598d4580c704c8c.tar.gz
kernel-qcow2-util-linux-b9dedd3d34cb6d340c7dc229b598d4580c704c8c.tar.xz
kernel-qcow2-util-linux-b9dedd3d34cb6d340c7dc229b598d4580c704c8c.zip
lib/monotonic: fix compiler warnings
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/monotonic.h')
-rw-r--r--include/monotonic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/monotonic.h b/include/monotonic.h
index aca8b1fe4..bbebfe0b9 100644
--- a/include/monotonic.h
+++ b/include/monotonic.h
@@ -4,6 +4,9 @@
/*
* Uses clock_gettime() that requires $CLOCKGETTIME_LIBS
*/
+#include <signal.h>
+#include <sys/time.h>
+
extern int get_boot_time(struct timeval *boot_time);
extern int gettime_monotonic(struct timeval *tv);