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>
pull/126/head
Andreas Henriksson 8 years ago committed by Karel Zak
parent 53e8c16e14
commit 5ec85227ad
  1. 2
      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>

Loading…
Cancel
Save