summaryrefslogtreecommitdiffstats
path: root/src/rspamd.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-08 13:15:15 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-08 13:15:15 +0100
commiteb737947eb2afe98f9dac1121fa37d1b746c5657 (patch)
tree02aa7752555cc4a47b1a9b423066bbdc52a7e8c5 /src/rspamd.c
parente0bfa35ee937940f20a5675bc7582cfc83c2866b (diff)
downloadrspamd-eb737947eb2afe98f9dac1121fa37d1b746c5657.tar.gz
rspamd-eb737947eb2afe98f9dac1121fa37d1b746c5657.zip
Reorganize includes to reduce namespace pollution.
Diffstat (limited to 'src/rspamd.c')
-rw-r--r--src/rspamd.c35
1 files changed, 31 insertions, 4 deletions
diff --git a/src/rspamd.c b/src/rspamd.c
index 4faa2d36c..743c34ced 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -26,15 +26,42 @@
#include "rspamd.h"
#include "libutil/map.h"
#include "fuzzy_storage.h"
-#include "libserver/symbols_cache.h"
#include "lua/lua_common.h"
#include "libserver/worker_util.h"
#include "ottery.h"
#include "xxhash.h"
#include "utlist.h"
-#include "libstat/stat_api.h"
-#include "cryptobox.h"
-#include "regexp.h"
+#include "unix-std.h"
+/* sysexits */
+#ifdef HAVE_SYSEXITS_H
+#include <sysexits.h>
+#endif
+/* pwd and grp */
+#ifdef HAVE_PWD_H
+#include <pwd.h>
+#endif
+#ifdef HAVE_GRP_H
+#include <grp.h>
+#endif
+
+#include <signal.h>
+#ifdef HAVE_SIGINFO_H
+#include <siginfo.h>
+#endif
+/* sys/resource.h */
+#ifdef HAVE_SYS_RESOURCE_H
+#include <sys/resource.h>
+#endif
+#ifdef HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
+#ifdef HAVE_LIBUTIL_H
+#include <libutil.h>
+#endif
+#ifdef WITH_GPERF_TOOLS
+#include <google/profiler.h>
+#endif
+
#ifdef HAVE_OPENSSL
#include <openssl/rand.h>
#include <openssl/err.h>