Commit 062aa419 authored by Kenton Varda's avatar Kenton Varda

Fix cygwin build: KJ's getsockopt() doesn't use socklen_t.

parent 1f0e6450
...@@ -201,7 +201,7 @@ size_t TwoPartyVatNetwork::getWindow() { ...@@ -201,7 +201,7 @@ size_t TwoPartyVatNetwork::getWindow() {
// exceptions? // exceptions?
int bufSize = 0; int bufSize = 0;
KJ_IF_MAYBE(exception, kj::runCatchingExceptions([&]() { KJ_IF_MAYBE(exception, kj::runCatchingExceptions([&]() {
socklen_t len = sizeof(int); uint len = sizeof(int);
KJ_SWITCH_ONEOF(stream) { KJ_SWITCH_ONEOF(stream) {
KJ_CASE_ONEOF(s, kj::AsyncIoStream*) { KJ_CASE_ONEOF(s, kj::AsyncIoStream*) {
s->getsockopt(SOL_SOCKET, SO_SNDBUF, &bufSize, &len); s->getsockopt(SOL_SOCKET, SO_SNDBUF, &bufSize, &len);
......
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