summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootstrap.conf1
-rw-r--r--m4/jm-macros.m41
-rw-r--r--src/sort.c4
3 files changed, 2 insertions, 4 deletions
diff --git a/bootstrap.conf b/bootstrap.conf
index 41b9cc224..eab660612 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -226,6 +226,7 @@ gnulib_modules="
strtoumax
symlink
sys_ioctl
+ sys_resource
sys_stat
sys_wait
termios
diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4
index 94cdf82b6..016172f04 100644
--- a/m4/jm-macros.m4
+++ b/m4/jm-macros.m4
@@ -189,7 +189,6 @@ AC_DEFUN([gl_CHECK_ALL_HEADERS],
priv.h
stropts.h
sys/param.h
- sys/resource.h
sys/systeminfo.h
syslog.h
])
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)