summaryrefslogtreecommitdiffstats
path: root/polyp/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/util.c')
-rw-r--r--polyp/util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/polyp/util.c b/polyp/util.c
index a05e601d..cccb6651 100644
--- a/polyp/util.c
+++ b/polyp/util.c
@@ -37,7 +37,6 @@
#include <signal.h>
#include <pthread.h>
#include <sys/time.h>
-#include <sys/resource.h>
#include <limits.h>
#include <unistd.h>
@@ -45,6 +44,10 @@
#include <sched.h>
#endif
+#ifdef HAVE_SYS_RESOURCE_H
+#include <sys/resource.h>
+#endif
+
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif