changeset 3921:181064782c71

Include sys/time.h. From Volker Borchert.
author Jim Meyering <jim@meyering.net>
date Mon, 01 Jul 2002 14:19:20 +0000
parents 678b6b899b7c
children 9e53b67f5194
files lib/c-stack.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/c-stack.c
+++ b/lib/c-stack.c
@@ -68,6 +68,12 @@
 #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