src: tie process.versions.uv to uv_version_string()
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 28 Mar 2013 19:12:02 +0000 (20:12 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 28 Mar 2013 19:12:05 +0000 (20:12 +0100)
src/node.cc

index f1a84a9d71bd6690b80818fdf56b021398fb4c5e..8ba577582eb9413dc0ebfcdcdc20aa59d624cd7b 100644 (file)
@@ -2356,9 +2356,7 @@ Handle<Object> SetupProcessObject(int argc, char *argv[]) {
   versions->Set(String::NewSymbol("node"), String::New(NODE_VERSION+1));
   versions->Set(String::NewSymbol("v8"), String::New(V8::GetVersion()));
   versions->Set(String::NewSymbol("ares"), String::New(ARES_VERSION_STR));
-  versions->Set(String::NewSymbol("uv"), String::New(
-               NODE_STRINGIFY(UV_VERSION_MAJOR) "."
-               NODE_STRINGIFY(UV_VERSION_MINOR)));
+  versions->Set(String::NewSymbol("uv"), String::New(uv_version_string()));
   versions->Set(String::NewSymbol("zlib"), String::New(ZLIB_VERSION));
 #if HAVE_OPENSSL
   // Stupid code to slice out the version string.