projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 1996-06-27 16:13:29 by partain]
[ghc-hetmet.git]
/
ghc
/
runtime
/
storage
/
SMstats.lc
diff --git
a/ghc/runtime/storage/SMstats.lc
b/ghc/runtime/storage/SMstats.lc
index
37e4895
..
3083e04
100644
(file)
--- a/
ghc/runtime/storage/SMstats.lc
+++ b/
ghc/runtime/storage/SMstats.lc
@@
-13,6
+13,9
@@
stat_exit
*********************************************************************
\begin{code}
*********************************************************************
\begin{code}
+#define NON_POSIX_SOURCE /*needed for solaris2 only?*/
+
+/* how is this to work given we have not read platform.h yet? */
#ifdef hpux_TARGET_OS
#define _INCLUDE_HPUX_SOURCE
#endif
#ifdef hpux_TARGET_OS
#define _INCLUDE_HPUX_SOURCE
#endif
@@
-41,6
+44,11
@@
stat_exit
#include <sys/resource.h>
#endif
#include <sys/resource.h>
#endif
+/* Needed for Solaris2 */
+#if /* defined(HAVE_SYS_RUSAGE_H) && */ defined(solaris2_TARGET_OS)
+#include <sys/rusage.h>
+#endif
+
#ifdef HAVE_SYS_TIMEB_H
#include <sys/timeb.h>
#endif
#ifdef HAVE_SYS_TIMEB_H
#include <sys/timeb.h>
#endif