Browse Source

Stat watchers don't work on windows yet

v0.7.4-release
Bert Belder 14 years ago
parent
commit
81b26dc555
  1. 2
      src/node_file.cc
  2. 4
      src/node_stat_watcher.cc

2
src/node_file.cc

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

4
src/node_stat_watcher.cc

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

Loading…
Cancel
Save