summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-03-12 23:13:10 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2012-03-12 23:22:48 +0100
commit531eba18a67805f7a95d20f7f9e684d83c5091b6 (patch)
tree7932028804b6c7e2a90ba46762666d1904808591 /src
parent677c2c112c8f92910b85e14575c9c941799f5916 (diff)
downloadnode-531eba18a67805f7a95d20f7f9e684d83c5091b6.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/node_zlib.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc
index 5d6311678..9e64a2453 100644
--- a/src/node_zlib.cc
+++ b/src/node_zlib.cc
@@ -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"