Mac OSX Tiger: getPageFaults

Joel Reymont joelr1 at gmail.com
Sun Dec 18 16:32:17 EST 2005


./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.

	Thanks, Joel

--
http://wagerlabs.com/







More information about the Cvs-ghc mailing list