X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FCPUTime.hsc;h=9dc62db2450712e6fb0c9d654e71aa5db9228148;hb=30041dab9a9f0a92109665977eee8674385dc83c;hp=7fe4fc2a74ad17ee38508fc2a9375d4f6d4f8804;hpb=1df344fea8ea411ad92db0c586b39b3374c6a3fa;p=ghc-base.git diff --git a/System/CPUTime.hsc b/System/CPUTime.hsc index 7fe4fc2..9dc62db 100644 --- a/System/CPUTime.hsc +++ b/System/CPUTime.hsc @@ -34,7 +34,30 @@ import CPUTime ( getCPUTime, cpuTimePrecision ) import Foreign import Foreign.C -#include "HsBase.h" +#include "HsBaseConfig.h" + +-- For _SC_CLK_TCK +#if HAVE_UNISTD_H +#include +#endif + +-- For struct rusage +#if !defined(mingw32_HOST_OS) && !defined(irix_HOST_OS) +# if HAVE_SYS_RESOURCE_H +# include +# endif +#endif + +-- For FILETIME etc. on Windows +#if HAVE_WINDOWS_H +#include +#endif + +-- for CLK_TCK +#if HAVE_TIME_H +#include +#endif + #endif #if !defined(mingw32_HOST_OS) && !defined(cygwin32_HOST_OS)