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.
#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"