genode/repos/libports/lib/mk/zlib.mk
Norman Feske e1e1fa23b7 zlib: fix compile warning
This patch includes 'unistd.h' to avoid warnings about the implicit
declaration of the functions ‘read’, 'close', and 'write.
2020-02-04 15:47:27 +01:00

15 lines
377 B
Makefile

ZLIB_DIR = $(call select_from_ports,zlib)/src/lib/zlib
LIBS += libc
INC_DIR += $(ZLIB_DIR)
SRC_C = adler32.c compress.c crc32.c deflate.c gzclose.c \
gzlib.c gzread.c gzwrite.c infback.c inffast.c inflate.c \
inftrees.c trees.c uncompr.c zutil.c
CC_WARN =
CC_OPT += -DZ_HAVE_UNISTD_H
vpath %.c $(ZLIB_DIR)
SHARED_LIB = yes
CC_CXX_WARN_STRICT =