diff --git a/fibers.js b/fibers.js index 8e08f14..0d1b387 100644 --- a/fibers.js +++ b/fibers.js @@ -1,12 +1,12 @@ var fs = require('fs'); if (fs.statSync(process.execPath).mtime > - fs.statSync(require.resolve('./src/fibers')).mtime) { + fs.statSync(__dirname + '/src/fibers')).mtime) { throw new Error( '`node` has a newer mtime than `fiber`; it is possible your build is out of date. This ' + 'could happen if you upgrade node. Try `npm rebuild fibers` to rebuild. If that doesn\'t ' + - 'work you could consider running `touch ' + require.resolve('./src/fibers') + '` and maybe ' + - 'there won\'t be a problem.'); + 'work you could consider running `touch ' + __dirname + 'src/fibers` and maybe there won\'t ' + + 'be a problem.'); } else if (!process.env.FIBER_SHIM) { throw new Error( 'Fiber support was not enabled when you ran node. To enable support for fibers, please run ' + diff --git a/package.json b/package.json index 2e36052..da325a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fibers", - "version": "0.1.1", + "version": "0.1.3", "description": "Cooperative multi-tasking for Javascript; or, the closest thing to a thread you'll see in node", "keywords": ["fiber", "fibers", "coroutine", "thread", "async", "parallel", "worker"], "homepage": "https://github.com/laverdet/node-fibers", diff --git a/src/platform.mk b/src/platform.mk index 5129c76..9b5b4aa 100644 --- a/src/platform.mk +++ b/src/platform.mk @@ -10,6 +10,9 @@ else CPPFLAGS += -g -O3 -minline-all-stringops endif +ifeq ($(NODE_BITS), ) + CPPFLAGS += -m32 +endif ifeq ($(NODE_BITS), 32) CPPFLAGS += -m32 endif