Skip to content

Commit 59ad4b0

Browse files
bnoordhuispiscisaureus
authored andcommitted
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: #273 Reviewed-by: Bert Belder <[email protected]>
1 parent 12912c6 commit 59ad4b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deps/zlib/zlib.gyp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
['OS!="win"', {
6363
'product_name': 'chrome_zlib',
6464
'cflags!': [ '-ansi' ],
65+
'defines': [ 'Z_HAVE_UNISTD_H' ],
6566
'sources!': [
6667
'contrib/minizip/iowin32.c'
6768
],

0 commit comments

Comments
 (0)