Skip to content

Commit 9701f1c

Browse files
TooTallNatebnoordhuis
authored andcommitted
process: expose the zlib version in use in process.versions
1 parent 531eba1 commit 9701f1c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/node.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ typedef int mode_t;
5555
#endif
5656
#include <errno.h>
5757
#include <sys/types.h>
58+
#include "zlib.h"
5859

5960
#ifdef __POSIX__
6061
# include <pwd.h> /* getpwnam() */
@@ -2088,6 +2089,7 @@ Handle<Object> SetupProcessObject(int argc, char *argv[]) {
20882089
versions->Set(String::NewSymbol("ares"), String::New(ARES_VERSION_STR));
20892090
snprintf(buf, 20, "%d.%d", UV_VERSION_MAJOR, UV_VERSION_MINOR);
20902091
versions->Set(String::NewSymbol("uv"), String::New(buf));
2092+
versions->Set(String::NewSymbol("zlib"), String::New(ZLIB_VERSION));
20912093
#if HAVE_OPENSSL
20922094
// Stupid code to slice out the version string.
20932095
int c, l = strlen(OPENSSL_VERSION_TEXT);

0 commit comments

Comments
 (0)