For reference, compiling on OSX

Anders Berg andersb at vgnett.no
Wed Sep 20 23:11:03 CEST 2006


> In message <825a03c0609201347k1520a771h8c940c0704f163a9 at mail.gmail.com>,
> "Marcu
> s Ramberg" writes:
>
>>cache_acceptor.c:170: error: 'CLOCK_REALTIME' undeclared (first use in
>> this
>>function)
>>
>>Dag Henning says this is because OSX does not have a clock_gettime system
>>call, and that gettimeofday aint monotonous enough or something like
>> that...
>>:-) I will try to dig more into the issue.
>
> gettimeofday() will do.  Just add a compat function that emulates
> clock_gettime() with a gettimeofday() call, and then preferably
> send an email to Jordan K. Hubbard at Apple and tell them to get
> their act together.

For the non-programmers out there, this should maybe be done in the
buildscripts?

Anders Berg



More information about the varnish-dev mailing list