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