summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sort.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sort.c b/src/sort.c
index 60ff415cf..493e7f173 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -24,6 +24,7 @@
#include <getopt.h>
#include <pthread.h>
+#include <sys/resource.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
@@ -52,9 +53,6 @@
#include "xnanosleep.h"
#include "xstrtol.h"
-#if HAVE_SYS_RESOURCE_H
-# include <sys/resource.h>
-#endif
#ifndef RLIMIT_DATA
struct rlimit { size_t rlim_cur; };
# define getrlimit(Resource, Rlp) (-1)