From 43a51fc64bb29d69975f5a8db286ce2e08360aaa Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Mon, 19 Aug 2013 07:40:20 -0400 Subject: [PATCH] fix issues for node v0.10x version bump to 0.3.0 --- package.json | 4 ++-- src/luastate.cc | 4 ++-- src/utils.h | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index af77b37..b1325c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodelua", - "version": "0.2.3", + "version": "0.3.0", "description": "Lua Bindings For Node.JS", "keywords": [ "lua" @@ -19,7 +19,7 @@ "license": "MIT", "gypfile": true, "engines": { - "node": ">=0.8.0 <0.10.0" + "node": ">=0.10.0" }, "engineStrict": true } diff --git a/src/luastate.cc b/src/luastate.cc index 2315ae2..e3f5d42 100644 --- a/src/luastate.cc +++ b/src/luastate.cc @@ -48,7 +48,7 @@ void do_status(uv_work_t *req){ } -void simple_after(uv_work_t *req){ +void simple_after(uv_work_t *req, int status){ HandleScope scope; simple_baton* baton = static_cast(req->data); @@ -81,7 +81,7 @@ void do_string(uv_work_t *req){ } -void async_after(uv_work_t *req){ +void async_after(uv_work_t *req, int status){ HandleScope scope; async_baton* baton = (async_baton *)req->data; diff --git a/src/utils.h b/src/utils.h index 49f8218..5052554 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,6 +1,7 @@ #ifndef LUAUTILS_H #define LUAUTILS_H +#include #include extern "C"{