Code

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 05cf9a76a3200e7ffddb42e02111acd3f0f2a562..9bd65bca8936c7175b7981dd0d2d8f72b008208b 100644 (file)
@@ -40,6 +40,7 @@
 #include <signal.h>
 #include <errno.h>
 #include <math.h>
+#include <sys/time.h>
 
 #include "utils_heap.h"