From: Jim Meyering Date: Sun, 10 Aug 2003 17:50:11 +0000 (+0000) Subject: [!NICE_PRIORITY]: Include after X-Git-Tag: CPPI-1_11~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc664579f8d12c6c87948eca0ca0dd6824e35097;p=thirdparty%2Fcoreutils.git [!NICE_PRIORITY]: Include 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. --- diff --git a/src/nice.c b/src/nice.c index 842ac484b7..487fb5510d 100644 --- a/src/nice.c +++ b/src/nice.c @@ -24,12 +24,15 @@ #include #include + +#include "system.h" + #ifndef NICE_PRIORITY -# include +/* 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 #endif -#include "system.h" #include "error.h" #include "long-options.h" #include "posixver.h"