summaryrefslogtreecommitdiff
path: root/deps/zlib/zlib.gyp
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-01-09 17:14:57 +0100
committerBert Belder <bertbelder@gmail.com>2015-01-10 02:38:17 +0100
commit59ad4b0432ca81ad8477dc0e40ff621b6e7b5778 (patch)
treecc657965a76962e5f236a3151d92dff4071e1388 /deps/zlib/zlib.gyp
parent12912c6b3074371d9860e4b4eb28453493db83a1 (diff)
downloadandroid-node-v8-59ad4b0432ca81ad8477dc0e40ff621b6e7b5778.tar.gz
android-node-v8-59ad4b0432ca81ad8477dc0e40ff621b6e7b5778.tar.bz2
android-node-v8-59ad4b0432ca81ad8477dc0e40ff621b6e7b5778.zip
deps: fix zlib -Wimplicit-function-declaration
Build the bundled zlib with -DZ_HAVE_UNISTD_H to make the definition of close(), read() and other unistd.h functions available to gzread.c and gzwrite.c. It's kind of silly that we have to jump through hoops here because we never call any of the functions that do I/O directly, but at least it squelches the -Wimplicit-function-declaration warnings. PR-URL: https://github.com/iojs/io.js/pull/273 Reviewed-by: Bert Belder <bertbelder@gmail.com>
Diffstat (limited to 'deps/zlib/zlib.gyp')
-rw-r--r--deps/zlib/zlib.gyp1
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/zlib/zlib.gyp b/deps/zlib/zlib.gyp
index fac801c7cb..fad1c94c16 100644
--- a/deps/zlib/zlib.gyp
+++ b/deps/zlib/zlib.gyp
@@ -62,6 +62,7 @@
['OS!="win"', {
'product_name': 'chrome_zlib',
'cflags!': [ '-ansi' ],
+ 'defines': [ 'Z_HAVE_UNISTD_H' ],
'sources!': [
'contrib/minizip/iowin32.c'
],