[project @ 1996-06-27 16:13:29 by partain]
[ghc-hetmet.git] / ghc / runtime / storage / SMstats.lc
index 37e4895..3083e04 100644 (file)
@@ -13,6 +13,9 @@ stat_exit
 *********************************************************************
 
 \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
@@ -41,6 +44,11 @@ stat_exit
 #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