Skip to content
Snippets Groups Projects
Commit 9070c14b authored by sof's avatar sof
Browse files

[project @ 1997-07-11 19:24:42 by sof]

cygwin32 now uses getrusage()
parent d2c7690e
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment