fixes for libuv 0.11
This commit is contained in:
@@ -83,7 +83,6 @@ void FileRequestBaton::file_stated(uv_fs_t *req) {
|
||||
if (stat->st_size > std::numeric_limits<int>::max()) {
|
||||
// File is too large for us to open this way because uv_buf's only support unsigned
|
||||
// ints as maximum size.
|
||||
const uv_err_t error = {UV_EFBIG, 0};
|
||||
if (ptr->request) {
|
||||
ptr->request->response = std::unique_ptr<Response>(new Response);
|
||||
ptr->request->response->code = UV_EFBIG;
|
||||
|
||||
@@ -15,7 +15,7 @@ std::string cwd() {
|
||||
do {
|
||||
max += 256;
|
||||
dir.resize(max);
|
||||
uv_cwd(const_cast<char *>(dir.data()), max);
|
||||
uv_cwd(const_cast<char *>(dir.data()), &max);
|
||||
} while (max == dir.size());
|
||||
dir.resize(max - 1);
|
||||
return dir;
|
||||
|
||||
Reference in New Issue
Block a user