gettimeofday() needs <sys/time.h>
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 3 Sep 2015 09:49:11 +0000 (11:49 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 3 Sep 2015 09:49:11 +0000 (11:49 +0200)
Fixes #1247

src/collectd-tg.c

index 05cf9a7..9bd65bc 100644 (file)
@@ -40,6 +40,7 @@
 #include <signal.h>
 #include <errno.h>
 #include <math.h>
+#include <sys/time.h>
 
 #include "utils_heap.h"