Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Stat watchers don't work on windows yet
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Dec 20, 2010
1 parent b4510d5 commit 81b26dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 4 additions & 0 deletions src/node_stat_watcher.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#ifdef __POSIX__

// Copyright 2009 Ryan Dahl <ry@tinyclouds.org>
#include <node_stat_watcher.h>

Expand Down Expand Up @@ -111,3 +113,5 @@ void StatWatcher::Stop () {


} // namespace node

#endif // __POSIX__

0 comments on commit 81b26dc

Please sign in to comment.