]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
logger: gettimeofday needs <sys/time.h>
authorAndreas Henriksson <andreas@fatal.se>
Thu, 18 Sep 2014 23:36:37 +0000 (01:36 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Oct 2014 08:20:20 +0000 (10:20 +0200)
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>
misc-utils/logger.c

index 0bf5e536a49c0e8c0fa89b8ff80393b1a576fe0d..05f63e235779b732ecb77a47bb93333e7051f2a0 100644 (file)
@@ -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>