diff options
-rw-r--r-- | cfg_file.h | 1 | ||||
-rw-r--r-- | cfg_utils.c | 9 | ||||
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | plugins/surbl.c | 1 | ||||
-rw-r--r-- | test/rspamd_url_test.c | 2 | ||||
-rw-r--r-- | url.c | 1 | ||||
-rw-r--r-- | util.c | 6 | ||||
-rw-r--r-- | utils/url_extracter.c | 1 |
8 files changed, 15 insertions, 8 deletions
diff --git a/cfg_file.h b/cfg_file.h index ff4eeb0d7..5fe89cf6d 100644 --- a/cfg_file.h +++ b/cfg_file.h @@ -19,7 +19,6 @@ #include <glib.h> #include "upstream.h" #include "memcached.h" -#include "main.h" #define DEFAULT_BIND_PORT 768 #define MAX_MEMCACHED_SERVERS 48 diff --git a/cfg_utils.c b/cfg_utils.c index 035980624..3339e2bd0 100644 --- a/cfg_utils.c +++ b/cfg_utils.c @@ -1,4 +1,5 @@ #include <sys/types.h> +#include <sys/socket.h> #include <ctype.h> #include <errno.h> #include <stdarg.h> @@ -11,16 +12,18 @@ #include <syslog.h> #include <netdb.h> #include <math.h> +#include <netinet/in.h> +#include <arpa/inet.h> + #include "config.h" +#include "cfg_file.h" +#include "main.h" #ifndef HAVE_OWN_QUEUE_H #include <sys/queue.h> #else #include "queue.h" #endif -#include "cfg_file.h" -#include "memcached.h" - extern int yylineno; extern char *yytext; @@ -180,7 +180,7 @@ check_include() if [ $? -eq 0 ] ; then echo "found" echo "-> OK" >> config.log - _CFLAG=`echo "HAVE_$INCLUDE" | sed -e 's/[./]/_/g' | tr '[:lower:]' '[:upper:]'` + _CFLAG=`echo "$INCLUDE" | sed -e 's/[./]/_/g' | tr '[:lower:]' '[:upper:]'` have_opt $_CFLAG cleanup return 0 diff --git a/plugins/surbl.c b/plugins/surbl.c index bcb5f38ba..b163a4f2f 100644 --- a/plugins/surbl.c +++ b/plugins/surbl.c @@ -13,6 +13,7 @@ #include <syslog.h> #include <fcntl.h> #include <stdlib.h> +#include <string.h> #include <evdns.h> diff --git a/test/rspamd_url_test.c b/test/rspamd_url_test.c index 0db5084bf..43545252d 100644 --- a/test/rspamd_url_test.c +++ b/test/rspamd_url_test.c @@ -9,7 +9,7 @@ #include <syslog.h> #include <fcntl.h> #include <stdlib.h> - +#include <string.h> #include "../config.h" #include "../main.h" @@ -7,6 +7,7 @@ #include <arpa/inet.h> #include <netinet/in.h> #include <netdb.h> +#include <string.h> #include "url.h" #include "fstring.h" @@ -7,11 +7,13 @@ #include <netdb.h> #include <errno.h> #include <unistd.h> +#include <stdarg.h> +#include <sys/file.h> + +#include "config.h" #ifdef HAVE_LIBUTIL_H #include <libutil.h> #endif -#include <stdarg.h> -#include <sys/file.h> #include "util.h" #include "cfg_file.h" diff --git a/utils/url_extracter.c b/utils/url_extracter.c index dc2138e6f..8cd8498df 100644 --- a/utils/url_extracter.c +++ b/utils/url_extracter.c @@ -9,6 +9,7 @@ #include <syslog.h> #include <fcntl.h> #include <stdlib.h> +#include <string.h> #include <gmime/gmime.h> |