fix mingw build
authorHenry Rawas <henryr@schakra.com>
Wed, 29 Jun 2011 16:59:45 +0000 (09:59 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Wed, 29 Jun 2011 17:12:26 +0000 (19:12 +0200)
src/node.cc

index 55ca0d1..70f9141 100644 (file)
@@ -1890,10 +1890,12 @@ static Handle<Value> Binding(const Arguments& args) {
 #endif
 
   } else if (!strcmp(*module_v, "timer")) {
+#ifdef __POSIX__
     exports = Object::New();
     Timer::Initialize(exports);
     binding_cache->Set(module, exports);
 
+#endif
   } else if (!strcmp(*module_v, "natives")) {
     exports = Object::New();
     DefineJavaScript(exports);