From 1103b8b8f06e91f3b9118a4679dd99eb23a77d37 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 9 Oct 2015 21:57:27 +0100 Subject: [PATCH] Update includes. --- src/libserver/worker_util.c | 11 +++++++++++ src/rspamd.c | 4 ---- 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 #endif +/* sys/resource.h */ +#ifdef HAVE_SYS_RESOURCE_H +#include +#endif +/* pwd and grp */ +#ifdef HAVE_PWD_H +#include +#endif +#ifdef HAVE_GRP_H +#include +#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 #endif -/* sys/resource.h */ -#ifdef HAVE_SYS_RESOURCE_H -#include -#endif #ifdef HAVE_SYS_WAIT_H #include #endif -- 2.39.5