From 214d3ee7393d86d6f7d3408ac3c66f36daf79caa Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 1 Jul 2002 14:19:20 +0000 Subject: Include sys/time.h. From Volker Borchert. --- lib/c-stack.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/c-stack.c b/lib/c-stack.c index 095f890e5..b50271070 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 -- cgit v1.2.3-54-g00ecf