Compilation error under FreeBSD

ULONG is not recognized under this OS, so replaced it with more portable definition.
This commit is contained in:
Foudge 2018-01-28 18:13:00 +01:00
parent 9a28ad590c
commit d2964576c7

View file

@ -532,7 +532,7 @@ void Client::onAllocBuffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t
auto client = getClient(handle->data);
buf->base = &client->m_recvBuf.base[client->m_recvBufPos];
buf->len = client->m_recvBuf.len - (ULONG)client->m_recvBufPos;
buf->len = client->m_recvBuf.len - (unsigned long)client->m_recvBufPos;
}