Mac OSX Tiger: getPageFaults

Simon Marlow simonmar at microsoft.com
Thu Jan 5 04:43:05 EST 2006


On 18 December 2005 21:32, Joel Reymont wrote:

> ./ghc/rts/posix/GetTime.c +136
> 
> posix/GetTime.c: In function 'getProcessElapsedTime':
> posix/GetTime.c:52:0:
>       warning: passing argument 2 of 'gettimeofday' from incompatible
> pointer type
> posix/GetTime.c: In function 'getPageFaults':
> posix/GetTime.c:136:0:
>       error: 'struct rusage' has no member named 'ru_majflt'
> 
> On OSX the rusage structure is opaque if _POSIX_C_SOURCE is not
> defined. GetTime.c includes PosixSource.h, though. I don't think it
> should.

Fixed, I hope.  Please let me know.

Cheers,
	Simon


More information about the Cvs-ghc mailing list