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:
+5
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user