From aa761cb27306e99f556bd0e241fef38023202ca8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 1 Jul 2002 14:19:20 +0000 Subject: [PATCH] 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 -- 2.11.0