diff options
author | cebka@mailsupport.rambler.ru <cebka@mailsupport.rambler.ru> | 2008-09-16 15:47:40 +0400 |
---|---|---|
committer | cebka@mailsupport.rambler.ru <cebka@mailsupport.rambler.ru> | 2008-09-16 15:47:40 +0400 |
commit | 9e442d87b2907ff011a80b8a795c6710b6665705 (patch) | |
tree | c109d7a754b40ec1b247df734990f6e9d586597f | |
parent | fe7ebd5be9d1352f7a3727bfbfabb6453321e269 (diff) | |
download | rspamd-9e442d87b2907ff011a80b8a795c6710b6665705.tar.gz rspamd-9e442d87b2907ff011a80b8a795c6710b6665705.zip |
* Fix include dependencies
-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> |