summaryrefslogtreecommitdiff
path: root/Makethird
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-12-17 12:15:02 +0100
committerTor Andersson <tor.andersson@artifex.com>2015-12-18 15:32:14 +0100
commited1d49f58750b204ddf7e2fb686d666e819f41e3 (patch)
treed6da56e133a046ba4f840f686957ea5a484f2142 /Makethird
parent15ce2165cc01dabc5a670407e00a0b704da0ee2f (diff)
downloadmupdf-ed1d49f58750b204ddf7e2fb686d666e819f41e3.tar.xz
Fix warning in zlib thirdparty build.
The gzip functions need lseek, open, read, write, close. Those functions are only defined in unistd.h is included, so make sure that happens.
Diffstat (limited to 'Makethird')
-rw-r--r--Makethird2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makethird b/Makethird
index 70cce88f..afb6cb0f 100644
--- a/Makethird
+++ b/Makethird
@@ -290,7 +290,7 @@ $(ZLIB_LIB): $(addprefix $(ZLIB_OUT)/, $(ZLIB_SRC:%.c=%.o))
$(ZLIB_OUT):
$(MKDIR_CMD)
$(ZLIB_OUT)/%.o: $(ZLIB_DIR)/%.c | $(ZLIB_OUT)
- $(CC_CMD) -Dverbose=-1
+ $(CC_CMD) -Dverbose=-1 -DHAVE_UNISTD_H -DHAVE_STDARG_H
ZLIB_CFLAGS := -I$(ZLIB_DIR)
else