diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2014-11-02 09:09:11 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2014-11-02 09:09:11 +0200 |
commit | 5bf995011f95b10ae03281119249f8ccb95e8496 (patch) | |
tree | 91df6da57424a652399806c1a2324cd2c2bb2fb4 | |
parent | 51555cf6b71d666aec5c36f7241f41f07f3ac0d0 (diff) | |
download | vmod-tbf-5bf995011f95b10ae03281119249f8ccb95e8496.tar.gz vmod-tbf-5bf995011f95b10ae03281119249f8ccb95e8496.tar.bz2 |
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).
-rw-r--r-- | src/tbf.c | 4 | ||||
-rw-r--r-- | src/tbf.h | 3 |
2 files changed, 3 insertions, 4 deletions
@@ -15,10 +15,6 @@ | |||
15 | along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>. | 15 | along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>. |
16 | */ | 16 | */ |
17 | #include "tbf.h" | 17 | #include "tbf.h" |
18 | #include <syslog.h> | ||
19 | #include <inttypes.h> | ||
20 | #include <sys/stat.h> | ||
21 | #include <sys/time.h> | ||
22 | #include <db.h> | 18 | #include <db.h> |
23 | 19 | ||
24 | static int debug_level; | 20 | static int debug_level; |
@@ -19,6 +19,9 @@ | |||
19 | #include <stdio.h> | 19 | #include <stdio.h> |
20 | #include <stdbool.h> | 20 | #include <stdbool.h> |
21 | #include <syslog.h> | 21 | #include <syslog.h> |
22 | #include <inttypes.h> | ||
23 | #include <sys/stat.h> | ||
24 | #include <sys/time.h> | ||
22 | #include "vrt.h" | 25 | #include "vrt.h" |
23 | #include "vcc_if.h" | 26 | #include "vcc_if.h" |
24 | #include "pthread.h" | 27 | #include "pthread.h" |