X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fruntime%2Fstorage%2FSMstats.lc;h=3083e048f7ade5c2e49c16d9f98445113cddece7;hb=769ce8e72ae626356ce57162b7ff448c0ef7e700;hp=37e4895f5fe46d63b5f2a54631ef1e8d343aa12c;hpb=a7e6cdbfc4f27c2e0ab9c12ebe6431c246c74c6d;p=ghc-hetmet.git diff --git a/ghc/runtime/storage/SMstats.lc b/ghc/runtime/storage/SMstats.lc index 37e4895..3083e04 100644 --- a/ghc/runtime/storage/SMstats.lc +++ b/ghc/runtime/storage/SMstats.lc @@ -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 #endif +/* Needed for Solaris2 */ +#if /* defined(HAVE_SYS_RUSAGE_H) && */ defined(solaris2_TARGET_OS) +#include +#endif + #ifdef HAVE_SYS_TIMEB_H #include #endif