commit 844605be02184d78716cf03722808c9448bee355
Author: Tom Hughes <tom@compton.nu>
Date: Mon Feb 11 18:49:06 2013 +0000
Updated for libuv changes in node 0.10
diff --git a/package.json b/package.json
index 447d9b5..b0feace 100644
--- a/package.json
+++ b/package.json
@@ -27,7 +27,7 @@
"examples" : "examples",
"src": "src"
},
- "engines" : { "node": ">= 0.6.13 && < 0.9.0" },
+ "engines" : { "node": ">= 0.6.13 && < 0.11.0" },
"scripts" : {
"install" : "node-waf configure build",
"test" : "make test"
diff --git a/src/node_zipfile.cpp b/src/node_zipfile.cpp
index 5321b9f..3a281da 100644
--- a/src/node_zipfile.cpp
+++ b/src/node_zipfile.cpp
@@ -293,7 +293,7 @@ Handle<Value> ZipFile::readFile(const Arguments& args) {
closure->error = false;
closure->name = name;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(args[args.Length()-1]));
- uv_queue_work(uv_default_loop(), &closure->request, Work_ReadFile, Work_AfterReadFile);
+ uv_queue_work(uv_default_loop(), &closure->request, Work_ReadFile, (uv_after_work_cb)Work_AfterReadFile);
zf->Ref();
return Undefined();
}