1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-04 07:43:58 +02:00

[!NICE_PRIORITY]: Include <sys/resource.h> after

system.h so the types from time.h and sys/time.h are available.
It appears that this is necessary for OpenBSD, NetBSD, and
Darwin 6.5 (MacOS 10.2.5).  Reported by Nelson Beebe.
This commit is contained in:
Jim Meyering
2003-08-10 17:50:11 +00:00
parent 8dc1a94ca6
commit cc664579f8
+5 -2
View File
@@ -24,12 +24,15 @@
#include <getopt.h>
#include <sys/types.h>
#include "system.h"
#ifndef NICE_PRIORITY
# include <time.h>
/* Include this after "system.h" so we're sure to have definitions
(from time.h or sys/time.h) required for e.g. the ru_utime member. */
# include <sys/resource.h>
#endif
#include "system.h"
#include "error.h"
#include "long-options.h"
#include "posixver.h"