From: Jim Meyering Date: Mon, 1 Jul 2002 14:19:20 +0000 (+0000) Subject: Include sys/time.h. X-Git-Tag: FILEUTILS-4_1_10~148 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=214d3ee7393d86d6f7d3408ac3c66f36daf79caa;p=thirdparty%2Fcoreutils.git Include sys/time.h. From Volker Borchert. --- diff --git a/lib/c-stack.c b/lib/c-stack.c index 095f890e51..b502710702 100644 --- a/lib/c-stack.c +++ b/lib/c-stack.c @@ -68,6 +68,12 @@ typedef struct sigaltstack stack_t; #include #if HAVE_SYS_RESOURCE_H +/* Include sys/time.h here, because... + SunOS-4.1.x fails to include . + This gives "incomplete type" errors for ru_utime and tu_stime. */ +# if HAVE_SYS_TIME_H +# include +# endif # include #endif