From d1d0667d871adbf6cc8c51d0d81ba06108d117e4 Mon Sep 17 00:00:00 2001 From: sof Date: Mon, 29 Jun 1998 17:53:31 +0000 Subject: [PATCH] [project @ 1998-06-29 17:53:31 by sof] slightly less obscene #ifdef'ing for solaris, define __EXTENSIONS__ to get at prusage_t struct --- ghc/runtime/storage/SMstats.lc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc/runtime/storage/SMstats.lc b/ghc/runtime/storage/SMstats.lc index 8082a63..5383ce2 100644 --- a/ghc/runtime/storage/SMstats.lc +++ b/ghc/runtime/storage/SMstats.lc @@ -25,6 +25,10 @@ stat_exit #define _INCLUDE_HPUX_SOURCE #endif +#ifdef solaris2_TARGET_OS +#define __EXTENSIONS__ +#endif + #ifdef HAVE_SYS_TYPES_H #include #endif @@ -67,7 +71,6 @@ stat_exit from getrusage() for Solaris -- SOF */ #if solaris2_TARGET_OS -#undef __STRICT_ANSI__ /* oh, dear */ #include #include #include -- 1.7.10.4