summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2002-07-01 14:19:20 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2002-07-01 14:19:20 +0000
commitda7959d1e0cba81ac77d545a12c328d358f490f9 (patch)
tree048c62d2d277e79c8289de5ccf2f054b09bdfaeb /lib
parent6d38b808b9b4ab7d5d0685d6d21885af60c51038 (diff)
downloaddiffutils-da7959d1e0cba81ac77d545a12c328d358f490f9.tar.gz
Include sys/time.h; from Volker Borchert.
Diffstat (limited to 'lib')
-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 095f890..b502710 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