GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: fix dynamically linked zlib version · nodejs/node@f90fc83

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • node.gypi
  • src
    • node_metadata.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎node.gypi‎

Copy file name to clipboardExpand all lines: node.gypi
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
} ],
142142
[ 'node_shared_zlib=="false"', {
143143
'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
144+
'defines': [ 'NODE_BUNDLED_ZLIB' ],
144145
'conditions': [
145146
[ 'force_load=="true"', {
146147
'xcode_settings': {
Collapse file

‎src/node_metadata.cc‎

Copy file name to clipboardExpand all lines: src/node_metadata.cc
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
#include "uv.h"
1616
#include "uvwasi.h"
1717
#include "v8.h"
18+
19+
#ifdef NODE_BUNDLED_ZLIB
1820
#include "zlib_version.h"
21+
#else
22+
#include <zlib.h>
23+
#endif // NODE_BUNDLED_ZLIB
1924

2025
#if HAVE_OPENSSL
2126
#include <openssl/opensslv.h>
@@ -79,7 +84,11 @@ Metadata::Versions::Versions() {
7984
node = NODE_VERSION_STRING;
8085
v8 = v8::V8::GetVersion();
8186
uv = uv_version_string();
87+
#ifdef NODE_BUNDLED_ZLIB
8288
zlib = ZLIB_VERSION;
89+
#else
90+
zlib = zlibVersion();
91+
#endif // NODE_BUNDLED_ZLIB
8392
ares = ARES_VERSION_STR;
8493
modules = NODE_STRINGIFY(NODE_MODULE_VERSION);
8594
nghttp2 = NGHTTP2_VERSION;

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.