Patch to fix the build issue on MacOS 10.9.4

Meng Zhang jammy.linux at gmail.com
Wed Jul 30 15:04:04 CEST 2014


Hi, @there,

Here ( https://github.com/varnish/Varnish-Cache/pull/46 ) is a pull-request to fix the build issue on MacOS 10.9.4.

Thanks

Regards,
Meng


diff --git a/bin/varnishd/cache/cache_http1_fsm.c b/bin/varnishd/cache/cache_http1_fsm.c
index 940dd9f..66063be 100644
--- a/bin/varnishd/cache/cache_http1_fsm.c
+++ b/bin/varnishd/cache/cache_http1_fsm.c
@@ -72,7 +72,6 @@
 #include <poll.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <inttypes.h>
 
 #include "cache.h"
 #include "hash/hash_slinger.h"
@@ -705,12 +704,12 @@ HTTP1_CacheReqBody(struct req *req, ssize_t maxsize)
 
                http_Unset(req->http0, H_Content_Length);
                http_Unset(req->http0, H_Transfer_Encoding);
-               http_PrintfHeader(req->http0, "Content-Length: %"PRIu64,
+               http_PrintfHeader(req->http0, "Content-Length: %ju",
                    req->req_bodybytes);
 
                http_Unset(req->http, H_Content_Length);
                http_Unset(req->http, H_Transfer_Encoding);
-               http_PrintfHeader(req->http, "Content-Length: %"PRIu64,
+               http_PrintfHeader(req->http, "Content-Length: %ju",
                    req->req_bodybytes);
 
                req->req_body_status = REQ_BODY_CACHED;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20140730/52088921/attachment.html>


More information about the varnish-dev mailing list