r5742 - trunk/varnish-cache/bin/varnishd
phk at varnish-cache.org
phk at varnish-cache.org
Fri Jan 14 00:51:35 CET 2011
Author: phk
Date: 2011-01-14 00:51:34 +0100 (Fri, 14 Jan 2011)
New Revision: 5742
Modified:
trunk/varnish-cache/bin/varnishd/cache_fetch.c
Log:
Try to get centos/32bit compiling another way.
Modified: trunk/varnish-cache/bin/varnishd/cache_fetch.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_fetch.c 2011-01-13 23:25:54 UTC (rev 5741)
+++ trunk/varnish-cache/bin/varnishd/cache_fetch.c 2011-01-13 23:51:34 UTC (rev 5742)
@@ -300,7 +300,13 @@
assert(sp->wrk->body_status == BS_EOF);
sp->wrk->vfp->begin(sp, 0);
- i = sp->wrk->vfp->bytes(sp, htc, 1000000000000LL); /* XXX ? */
+ i = sp->wrk->vfp->bytes(sp, htc,
+#ifdef SIZE_T_MAX
+ SIZE_T_MAX
+#else
+ sizeof(void*) == 4 ? ((size_t)1<<31) : ((size_t)1 << 63)
+#endif
+ );
if (i < 0) {
WSP(sp, SLT_FetchError, "eof read_error: %d (%s)",
errno, strerror(errno));
More information about the varnish-commit
mailing list