diff --git a/ghc/runtime/storage/SMstats.lc b/ghc/runtime/storage/SMstats.lc index 9411b54b74403425a0f468afa813f43129a1e803..9e98bb7962d4a93ded4142c5c18abfbeee4f74e2 100644 --- a/ghc/runtime/storage/SMstats.lc +++ b/ghc/runtime/storage/SMstats.lc @@ -266,12 +266,15 @@ pagefaults(STG_NO_ARGS) static I_ pagefaults(STG_NO_ARGS) { -# if !defined(HAVE_GETRUSAGE) || irix_TARGET_OS || cygwin32_TARGET_OS +# if !defined(HAVE_GETRUSAGE) || irix_TARGET_OS return 0; # else struct rusage t; getrusage(RUSAGE_SELF, &t); + /* cygwin32 note: Last time I looked (b18), the ru_majflt field + was always filled in with a 0. -- SOF (ToDo: Win32ify?) + */ return(t.ru_majflt); # endif }