summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Henriksson <andreas@fatal.se>2014-09-19 01:36:37 +0200
committerKarel Zak <kzak@redhat.com>2014-10-24 10:20:20 +0200
commitbb471a38d55d73adab17d24bf5fbf1a3d3682993 (patch)
tree2d12b13528cd94ea2dc7ba46e9437a7601bac153
parenta9c6cc2c08b353b2e4e60d46aad7b4b135244cfa (diff)
downloadutil-linux-bb471a38d55d73adab17d24bf5fbf1a3d3682993.tar.gz
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>
-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 0bf5e536a..05f63e235 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>