]> 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>
Mon, 22 Sep 2014 10:54:11 +0000 (12:54 +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 99a5569b3e18b9a62edd30dfc70afdd68bb167aa..2994dc0e371cdaca56fb6620b5399809c2ab1630 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>