From: Jim Meyering Date: Fri, 4 May 2012 09:18:28 +0000 (+0200) Subject: maint: rely on gnulib's new sys_resource module X-Git-Tag: v8.17~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c999133e539cd01860338bf6d0f33d825ae94490;p=thirdparty%2Fcoreutils.git maint: rely on gnulib's new sys_resource module * bootstrap.conf (gnulib_modules): Add sys_resource. * src/sort.c: Remove #if HAVE_SYS_RESOURCE_H guard around inclusion of and move the inclusion "up" into the alphabetized list of its peers. This also avoids a failure of the sc_prohibit_always_true_header_tests syntax-check rule. * m4/jm-macros.m4 (gl_CHECK_ALL_HEADERS): Remove sys/resource.h. --- diff --git a/bootstrap.conf b/bootstrap.conf index 41b9cc224a..eab6606123 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 94cdf82b69..016172f04e 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 60ff415cfd..493e7f1739 100644 --- a/src/sort.c +++ b/src/sort.c @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -52,9 +53,6 @@ #include "xnanosleep.h" #include "xstrtol.h" -#if HAVE_SYS_RESOURCE_H -# include -#endif #ifndef RLIMIT_DATA struct rlimit { size_t rlim_cur; }; # define getrlimit(Resource, Rlp) (-1)