Skip to content

Commit 531eba1

Browse files
committed
zlib: fix include of zlib.h
Including <zlib.h> may lead to false positives when the user specifies a bad path in `./configure --shared-zlib --shared-zlib-includes=/path/to/zlib`. If a zlib.h exists somewhere on the system include path (common on UNIX systems), the compiler will include that instead, possibly leading to header mismatch errors that are hard to debug.
1 parent 677c2c1 commit 531eba1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node_zlib.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
#include <string.h>
2626
#include <stdlib.h>
2727
#include <sys/types.h>
28-
#include <zlib.h>
2928

29+
#include "zlib.h"
3030
#include "node.h"
3131
#include "node_buffer.h"
3232

0 commit comments

Comments
 (0)