FYI: Installation instructions updated to include Mac OS X

Dag-Erling Smørgrav des at linpro.no
Thu Nov 2 13:16:14 CET 2006


Pierre Queinnec <pierre at queinnec.org> writes:
> I've been wanting to share a quick n'dirty patch to get it to work on OS
> X with a clock_gettime hack, but as I updated to the current SVN
> version, I saw this commit:
>
> http://projects.linpro.no/pipermail/varnish-commit/2006-October/001218.html
>
> It should answer your question. BTW, I ponder wether it's better to use
> gettimeofday-style or something like:
>     host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &myClock);
>     clock_get_time(myClock, &myTime);
>
> I bet the current compat hack is better, because it doesn't involve
> including mach headers.

The correct solution is to pester Apple until they implement
clock_gettime(), which is required by POSIX.

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no



More information about the varnish-misc mailing list