aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-09 21:57:27 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-09 21:57:27 +0100
commit1103b8b8f06e91f3b9118a4679dd99eb23a77d37 (patch)
tree7283b38250cbde3b0d76d17fdf3aed30bc936561 /src
parentc1a9b4988a861fb6087fc76ca549d4c364949ef0 (diff)
downloadrspamd-1103b8b8f06e91f3b9118a4679dd99eb23a77d37.tar.gz
rspamd-1103b8b8f06e91f3b9118a4679dd99eb23a77d37.zip
Update includes.
Diffstat (limited to 'src')
-rw-r--r--src/libserver/worker_util.c11
-rw-r--r--src/rspamd.c4
2 files changed, 11 insertions, 4 deletions
diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c
index ea3125ac8..2db047afe 100644
--- a/src/libserver/worker_util.c
+++ b/src/libserver/worker_util.c
@@ -33,6 +33,17 @@
#ifdef WITH_GPERF_TOOLS
#include <google/profiler.h>
#endif
+/* sys/resource.h */
+#ifdef HAVE_SYS_RESOURCE_H
+#include <sys/resource.h>
+#endif
+/* pwd and grp */
+#ifdef HAVE_PWD_H
+#include <pwd.h>
+#endif
+#ifdef HAVE_GRP_H
+#include <grp.h>
+#endif
/**
* Return worker's control structure by its type
diff --git a/src/rspamd.c b/src/rspamd.c
index 596a2511c..19d04aae0 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -49,10 +49,6 @@
#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