From c999133e539cd01860338bf6d0f33d825ae94490 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 4 May 2012 11:18:28 +0200 Subject: 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. --- src/sort.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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 #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) -- cgit v1.2.3-70-g09d2