Browse Source

Re-enable stat watchers on windows

This reverts commit b8a99f94167a25f63ae096d9d5e2cc9cf70cecef.
v0.7.4-release
Bert Belder 14 years ago
parent
commit
bea5e6eff6
  1. 2
      src/node_file.cc
  2. 4
      src/node_stat_watcher.cc

2
src/node_file.cc

@ -851,9 +851,7 @@ void InitFs(Handle<Object> target) {
stats_constructor_template = Persistent<FunctionTemplate>::New(stat_templ); stats_constructor_template = Persistent<FunctionTemplate>::New(stat_templ);
target->Set(String::NewSymbol("Stats"), target->Set(String::NewSymbol("Stats"),
stats_constructor_template->GetFunction()); stats_constructor_template->GetFunction());
#ifdef __POSIX__
StatWatcher::Initialize(target); StatWatcher::Initialize(target);
#endif // __POSIX__
File::Initialize(target); File::Initialize(target);
} }

4
src/node_stat_watcher.cc

@ -1,5 +1,3 @@
#ifdef __POSIX__
// Copyright 2009 Ryan Dahl <ry@tinyclouds.org> // Copyright 2009 Ryan Dahl <ry@tinyclouds.org>
#include <node_stat_watcher.h> #include <node_stat_watcher.h>
@ -113,5 +111,3 @@ void StatWatcher::Stop () {
} // namespace node } // namespace node
#endif // __POSIX__

Loading…
Cancel
Save