diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-10 15:48:08 -0700 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-10 15:48:08 -0700 |
commit | a9fba6f528239db087328a34f4a72b6ba8ee0488 (patch) | |
tree | 1c8e942bc8f3f7ca55eda034968fc44dda01c43c /src | |
parent | aaf01eb861224c6d56c6311fd3d6a9072c7df132 (diff) | |
download | rspamd-a9fba6f528239db087328a34f4a72b6ba8ee0488.tar.gz rspamd-a9fba6f528239db087328a34f4a72b6ba8ee0488.zip |
Move some rarely used includes from config.h
Diffstat (limited to 'src')
-rw-r--r-- | src/aio_event.c | 8 | ||||
-rw-r--r-- | src/buffer.c | 3 | ||||
-rw-r--r-- | src/client/rspamdclient.c | 6 | ||||
-rw-r--r-- | src/main.c | 4 | ||||
-rw-r--r-- | src/util.c | 7 |
5 files changed, 28 insertions, 0 deletions
diff --git a/src/aio_event.c b/src/aio_event.c index 60cd95295..ccda37083 100644 --- a/src/aio_event.c +++ b/src/aio_event.c @@ -25,6 +25,14 @@ #include "aio_event.h" #include "main.h" +#ifdef HAVE_SYS_EVENTFD_H +#include <sys/eventfd.h> +#endif + +#ifdef HAVE_AIO_H +#include <aio.h> +#endif + /* Linux syscall numbers */ #if defined(__i386__) # define SYS_io_setup 245 diff --git a/src/buffer.c b/src/buffer.c index 73bb6e654..33efa86ed 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -25,6 +25,9 @@ #include "config.h" #include "buffer.h" #include "main.h" +#ifdef HAVE_SYS_SENDFILE_H +#include <sys/sendfile.h> +#endif #define G_DISPATCHER_ERROR dispatcher_error_quark() #define debug_ip(...) rspamd_conditional_debug(rspamd_main->logger, d->peer_addr, __FUNCTION__, __VA_ARGS__) diff --git a/src/client/rspamdclient.c b/src/client/rspamdclient.c index 293c49214..59dc77b76 100644 --- a/src/client/rspamdclient.c +++ b/src/client/rspamdclient.c @@ -25,6 +25,12 @@ #include "util.h" #include "http.h" +#ifdef HAVE_FETCH_H +#include <fetch.h> +#elif defined(CURL_FOUND) +#include <curl/curl.h> +#endif + struct rspamd_client_request; /* diff --git a/src/main.c b/src/main.c index 1c5260428..e5c444a5b 100644 --- a/src/main.c +++ b/src/main.c @@ -42,6 +42,10 @@ #include <openssl/rsa.h> #include <openssl/pem.h> #endif +#ifdef HAVE_LOCALE_H +#include <locale.h> +#define HAVE_SETLOCALE 1 +#endif /* 2 seconds to fork new process in place of dead one */ #define SOFT_FORK_TIME 2 diff --git a/src/util.c b/src/util.c index 2acf58845..3db6a3fe1 100644 --- a/src/util.c +++ b/src/util.c @@ -36,6 +36,13 @@ #include <openssl/err.h> #endif +#ifdef HAVE_TERMIOS_H +#include <termios.h> +#endif +#ifdef HAVE_READPASSPHRASE_H +#include <readpassphrase.h> +#endif + /* Check log messages intensity once per minute */ #define CHECK_TIME 60 /* More than 2 log messages per second */ |