Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
zlib: fix include of zlib.h
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bnoordhuis committed Mar 12, 2012
1 parent 677c2c1 commit 531eba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_zlib.cc
Expand Up @@ -25,8 +25,8 @@
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <zlib.h>

#include "zlib.h"
#include "node.h"
#include "node_buffer.h"

Expand Down

0 comments on commit 531eba1

Please sign in to comment.