[project @ 1998-06-29 17:53:31 by sof]
authorsof <unknown>
Mon, 29 Jun 1998 17:53:31 +0000 (17:53 +0000)
committersof <unknown>
Mon, 29 Jun 1998 17:53:31 +0000 (17:53 +0000)
slightly less obscene #ifdef'ing for solaris, define __EXTENSIONS__ to get at prusage_t struct

ghc/runtime/storage/SMstats.lc

index 8082a63..5383ce2 100644 (file)
@@ -25,6 +25,10 @@ stat_exit
 #define _INCLUDE_HPUX_SOURCE
 #endif
 
+#ifdef solaris2_TARGET_OS
+#define __EXTENSIONS__
+#endif
+
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
@@ -67,7 +71,6 @@ stat_exit
  from getrusage() for Solaris   -- SOF
 */
 #if solaris2_TARGET_OS
-#undef __STRICT_ANSI__  /* oh, dear */
 #include <sys/fcntl.h>
 #include <sys/signal.h>
 #include <sys/procfs.h>