mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03: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:
1 parent
8dc1a94ca6
commit
cc664579f8
1 file changed
+5
-2
+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