Commit f6463dd6 authored by Kenton Varda's avatar Kenton Varda Committed by GitHub

Merge pull request #447 from dwrensha/fix-build

Fix autotools build on MacOS
parents f35d902d 241b6723
......@@ -244,7 +244,7 @@ libkj_async_la_SOURCES= \
src/kj/async-io-win32.c++ \
src/kj/time.c++
libkj_http_la_LIBADD = libkj.la $(ASYNC_LIBS) $(PTHREAD_LIBS)
libkj_http_la_LIBADD = libkj-async.la libkj.la $(ASYNC_LIBS) $(PTHREAD_LIBS)
libkj_http_la_LDFLAGS = -release $(SO_VERSION) -no-undefined
libkj_http_la_SOURCES= \
src/kj/compat/http.c++
......
......@@ -23,6 +23,7 @@
#include <kj/debug.h>
#include <kj/parse/char.h>
#include <unordered_map>
#include <stdlib.h>
namespace kj {
......@@ -1458,7 +1459,7 @@ public:
inner.writeBodyData(kj::str(*length, "\r\n"));
auto lengthValue = *length;
return inner.pumpBodyFrom(input, *length)
.then([this,lengthValue](size_t actual) {
.then([this,lengthValue](uint64_t actual) {
if (actual < lengthValue) {
inner.abortBody();
KJ_FAIL_REQUIRE(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment