diff --git a/polyp/cpulimit.c b/polyp/cpulimit.c index f121123f1..53920f50a 100644 --- a/polyp/cpulimit.c +++ b/polyp/cpulimit.c @@ -30,10 +30,13 @@ #include #include #include -#include #include #include +#ifdef HAVE_SYS_RESOURCE_H +#include +#endif + #include "cpulimit.h" #include "util.h" #include "log.h" diff --git a/polyp/util.c b/polyp/util.c index a05e601d8..cccb6651b 100644 --- a/polyp/util.c +++ b/polyp/util.c @@ -37,7 +37,6 @@ #include #include #include -#include #include #include @@ -45,6 +44,10 @@ #include #endif +#ifdef HAVE_SYS_RESOURCE_H +#include +#endif + #ifdef HAVE_NETDB_H #include #endif