-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: do not define ZLIB_CONST #9122
Conversation
@@ -176,7 +176,7 @@ void SendProtocolJson(InspectorSocket* socket) { | |||
PROTOCOL_JSON[0] * 0x10000u + | |||
PROTOCOL_JSON[1] * 0x100u + | |||
PROTOCOL_JSON[2]; | |||
strm.next_in = PROTOCOL_JSON + 3; | |||
strm.next_in = const_cast<uint8_t *>(PROTOCOL_JSON + 3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No space before the *
please.
@evantorrie can you test this change out? |
This define is not available in zlib prior to version 1.2.5.2. See nodejs#9110 for details. Workaround the build breakage reported by casting away const in src/inspector_agent.cc instead.
c4e7c71
to
efacdb4
Compare
@rvagg this may need to be included in this weeks v6 release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I tested this patch out and it works for me (RHEL 6.8, --shared-zlib). |
landed @ a9f4fc9 |
This define is not available in zlib prior to version 1.2.5.2. See #9110 for details. Workaround the build breakage reported by casting away const in src/inspector_agent.cc instead. PR-URL: #9122 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
ack, this'll go in to 6.9.0 |
This define is not available in zlib prior to version 1.2.5.2. See #9110 for details. Workaround the build breakage reported by casting away const in src/inspector_agent.cc instead. PR-URL: #9122 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
@addaleax assuming this also does not need to land in v4.x |
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
build
Description of change
This define is not available in zlib prior to version 1.2.5.2. See
#9110 for details. Workaround the build breakage reported by
casting away const in src/inspector_agent.cc instead.