summaryrefslogtreecommitdiffstats
path: root/misc-utils/logger.c
diff options
context:
space:
mode:
authorAndreas Henriksson2014-09-19 01:36:37 +0200
committerKarel Zak2014-09-22 12:54:11 +0200
commit5ec85227ad3a8e9a8a0ddb1de8bdda30d2abea2f (patch)
treee75713290b55ddf6cdcdbc57a73f4430e2be1abb /misc-utils/logger.c
parentbuild-sys: build libmount everywhere (diff)
downloadkernel-qcow2-util-linux-5ec85227ad3a8e9a8a0ddb1de8bdda30d2abea2f.tar.gz
kernel-qcow2-util-linux-5ec85227ad3a8e9a8a0ddb1de8bdda30d2abea2f.tar.xz
kernel-qcow2-util-linux-5ec85227ad3a8e9a8a0ddb1de8bdda30d2abea2f.zip
logger: gettimeofday needs <sys/time.h>
Either works on linux, but kfreebsd build fails if we don't use the <sys/time.h> include. According to man gettimeofday the correct include is <sys/time.h> Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Diffstat (limited to 'misc-utils/logger.c')
-rw-r--r--misc-utils/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/logger.c b/misc-utils/logger.c
index 99a5569b3..2994dc0e3 100644
--- a/misc-utils/logger.c
+++ b/misc-utils/logger.c
@@ -40,7 +40,7 @@
#include <limits.h>
#include <unistd.h>
#include <stdlib.h>
-#include <time.h>
+#include <sys/time.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>