Missing include in cache_backend.c

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Apr 26 08:55:03 CEST 2007


Thanks!

In message <46304889.7020404 at zenika.com>, Pierre Queinnec writes:
>This is a multi-part message in MIME format.
>--------------080501030103010503080708
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>Content-Transfer-Encoding: 7bit
>
>Hi,
>
>It seems to me there's a missing #ifndef HAVE_CLOCK_GETTIME in
>bin/varnishd/cache_backend.c. Trivial patch attached, if at all needed.
>
>Thanks,
>--
>Pierre Queinnec
>Architecte - Zenika
>http://www.zenika.com
>
>
>--------------080501030103010503080708
>Content-Type: text/plain;
> name="patch-cache_backend.c"
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline;
> filename="patch-cache_backend.c"
>
>Index: bin/varnishd/cache_backend.c
>===================================================================
>--- bin/varnishd/cache_backend.c	(revision 1367)
>+++ bin/varnishd/cache_backend.c	(working copy)
>@@ -48,6 +48,10 @@
> #include <sys/select.h>
> #include <sys/ioctl.h>
> 
>+#ifndef HAVE_CLOCK_GETTIME
>+#include "compat/clock_gettime.h"
>+#endif
>+
> #include "heritage.h"
> #include "shmlog.h"
> #include "cache.h"
>
>
>--------------080501030103010503080708
>Content-Type: text/plain; charset="us-ascii"
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline
>
>_______________________________________________
>varnish-dev mailing list
>varnish-dev at projects.linpro.no
>http://projects.linpro.no/mailman/listinfo/varnish-dev
>
>--------------080501030103010503080708--
>

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-dev mailing list