summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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