summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-07-01 14:19:20 +0000
committerJim Meyering <jim@meyering.net>2002-07-01 14:19:20 +0000
commit214d3ee7393d86d6f7d3408ac3c66f36daf79caa (patch)
treef3d400e93d3d8f87a4d7456f326b7fbf9ee12187
parenta7d1d17be0f5243b2a82971ac3647139418013a4 (diff)
downloadcoreutils-214d3ee7393d86d6f7d3408ac3c66f36daf79caa.tar.xz
Include sys/time.h.
From Volker Borchert.
-rw-r--r--lib/c-stack.c6
1 files changed, 6 insertions, 0 deletions
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 <string.h>
#if HAVE_SYS_RESOURCE_H
+/* Include sys/time.h here, because...
+ SunOS-4.1.x <sys/resource.h> fails to include <sys/time.h>.
+ This gives "incomplete type" errors for ru_utime and tu_stime. */
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# endif
# include <sys/resource.h>
#endif