authorSergey Poznyakoff <>2014-11-02 07:09:11 (GMT)
committer Sergey Poznyakoff <>2014-11-02 07:09:11 (GMT)
commit5bf995011f95b10ae03281119249f8ccb95e8496 (patch) (side-by-side diff)
parent51555cf6b71d666aec5c36f7241f41f07f3ac0d0 (diff)
Fix compilation on some platforms
* src/tbf.h: Place system includes before varnish ones. One of the varnish headers (common.h) defines __unused which can conflict with parameter declarations in some system headers (bits/stat.h on GNU/Linux, for example).
Diffstat (more/less context) (ignore whitespace changes)
2 files changed, 3 insertions, 4 deletions
diff --git a/src/tbf.c b/src/tbf.c
index f24b925..dadb9cc 100644
--- a/src/tbf.c
+++ b/src/tbf.c
@@ -15,10 +15,6 @@
along with vmod-tbf. If not, see <>.
#include "tbf.h"
-#include <syslog.h>
-#include <inttypes.h>
-#include <sys/stat.h>
-#include <sys/time.h>
#include <db.h>
static int debug_level;
diff --git a/src/tbf.h b/src/tbf.h
index 3c7a118..69e1262 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -19,6 +19,9 @@
#include <stdio.h>
#include <stdbool.h>
#include <syslog.h>
+#include <inttypes.h>
+#include <sys/stat.h>
+#include <sys/time.h>
#include "vrt.h"
#include "vcc_if.h"
#include "pthread.h"

Return to:

Send suggestions and report system problems to the System administrator.