← Back to team overview

yade-dev team mailing list archive

CLOCK_MONOLITIC portability

 

Hi,

I'm currently trying to compile yade on Mac OS X (Leopard).
for the moment, all optional packages are disabled and also qt3.
My problem is about clock_gettime(CLOCK_MONOLITIC) that seem to be not support by this OS.
It appears only one time in the file core/Timing.hpp coded by Vaclav.

Do you know an alternative so that I can compile on Mac ?
If not, could I use sometime like:

#ifdef __APPLE__
// do something (or nothing)
#else
clock_gettime(CLOCK_MMONOLITIC);
#endif

thanks,
VR



Follow ups