From 9b3de998c31ab2d52f52414057911f1419fa16fa Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Mon, 29 Aug 2016 14:20:11 +1000 Subject: [PATCH] * reorganize headers in filters --- src/filters/filter.h | 7 +++++++ src/filters/pcre.c | 6 ------ src/filters/preg.c | 6 ------ 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/filters/filter.h b/src/filters/filter.h index ccb7af4..6c619e7 100644 --- a/src/filters/filter.h +++ b/src/filters/filter.h @@ -4,7 +4,14 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ +#if defined(__linux__) +#include +#endif +#include #include +#include +#include +#include #define ID_MAX 32 #define PATTERN_MAX 256 diff --git a/src/filters/pcre.c b/src/filters/pcre.c index 9ed4ca6..b7b371c 100644 --- a/src/filters/pcre.c +++ b/src/filters/pcre.c @@ -4,12 +4,6 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#include -#include -#include -#include -#include - #include "filter.h" #include diff --git a/src/filters/preg.c b/src/filters/preg.c index 3ab2f14..3790fc0 100644 --- a/src/filters/preg.c +++ b/src/filters/preg.c @@ -4,12 +4,6 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#include -#include -#include -#include -#include - #include "filter.h" #include