Varnish 3.0beta1 build on Solaris 10

Thomas Woinke thomas.woinke at gmail.com
Fri May 13 10:18:56 CEST 2011


Hi,

I just tried to build Varnish 3.0beta1 on Solaris 10 using gcc 4.3.3.
The build failed due to a missing parenthesis in
lib/libvarnish/time.c.
Here's a small patch that fixed it for me.

Regards,
Thomas Woinke


*** time.c      Fri May 13 10:05:03 2011
--- time.c.orig Fri May 13 10:04:42 2011
***************
*** 166,172 ****
        (void)nanosleep(&ts, NULL);
  #else
        if (t >= 1.) {
!               (void)sleep(floor(t));
                t -= floor(t);
        }
        /* XXX: usleep() is not mandated to be thread safe */
--- 166,172 ----
        (void)nanosleep(&ts, NULL);
  #else
        if (t >= 1.) {
!               (void)sleep(floor(t);
                t -= floor(t);
        }
        /* XXX: usleep() is not mandated to be thread safe */




More information about the varnish-misc mailing list