From 81b26dc55589fb6a11b9076f73597bc5e9939344 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 25 Nov 2010 01:13:23 +0100 Subject: [PATCH] Stat watchers don't work on windows yet --- src/node_file.cc | 2 ++ src/node_stat_watcher.cc | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/node_file.cc b/src/node_file.cc index 0deca41..d7f8b95 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -812,7 +812,9 @@ void InitFs(Handle target) { stats_constructor_template = Persistent::New(stat_templ); target->Set(String::NewSymbol("Stats"), stats_constructor_template->GetFunction()); +#ifdef __POSIX__ StatWatcher::Initialize(target); +#endif // __POSIX__ File::Initialize(target); } diff --git a/src/node_stat_watcher.cc b/src/node_stat_watcher.cc index bbc4fdf..5173f1a 100644 --- a/src/node_stat_watcher.cc +++ b/src/node_stat_watcher.cc @@ -1,3 +1,5 @@ +#ifdef __POSIX__ + // Copyright 2009 Ryan Dahl #include @@ -111,3 +113,5 @@ void StatWatcher::Stop () { } // namespace node + +#endif // __POSIX__ -- 2.7.4