projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b3a258
)
Include sys/time.h.
author
Jim Meyering
<jim@meyering.net>
Mon, 1 Jul 2002 14:19:20 +0000
(14:19 +0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 1 Jul 2002 14:19:20 +0000
(14:19 +0000)
From Volker Borchert.
lib/c-stack.c
patch
|
blob
|
history
diff --git
a/lib/c-stack.c
b/lib/c-stack.c
index 095f890e514209ddcc3f4b1e4d270c55b4d2c09c..b5027107022b8ae21cf558aa44d2aea8e4fadcfa 100644
(file)
--- 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