diff --git a/src/node.cc b/src/node.cc index 7b29eea4ee..f4b0820fe4 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1744,10 +1744,7 @@ static void AtExit() { } -} // namespace node - - -int main(int argc, char *argv[]) { +int Start(int argc, char *argv[]) { // Hack aroung with the argv pointer. Used for process.title = "blah". argv = node::OS::SetupArgs(argc, argv); @@ -1879,3 +1876,6 @@ int main(int argc, char *argv[]) { #endif // NDEBUG return 0; } + + +} // namespace node diff --git a/src/node.h b/src/node.h index 901d853d3f..c73df2abf9 100644 --- a/src/node.h +++ b/src/node.h @@ -17,6 +17,8 @@ namespace node { +int Start (int argc, char *argv[]); + #define NODE_PSYMBOL(s) Persistent::New(String::NewSymbol(s)) /* Converts a unixtime to V8 Date */ diff --git a/wscript b/wscript index 565b286d19..bcbe69127e 100644 --- a/wscript +++ b/wscript @@ -474,6 +474,7 @@ def build(bld): node.install_path = '${PREFIX}/bin' node.chmod = 0755 node.source = """ + src/node_main.cc src/node.cc src/node_buffer.cc src/node_extensions.cc