Fix implicit declaration error in zlib + macOS

pull/24979/head
Masaki Hara 4 years ago
parent 254730af92
commit d70355cedd
  1. 3
      Makefile

@ -2454,6 +2454,9 @@ PUBLIC_HEADERS_C += \
LIBZ_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(LIBZ_SRC))))
$(LIBZ_OBJS): CFLAGS += -fvisibility=hidden
ifeq ($(SYSTEM),Darwin)
$(LIBZ_OBJS): CPPFLAGS += -DHAVE_UNISTD_H
endif
$(LIBDIR)/$(CONFIG)/libz.a: $(LIBZ_OBJS)
$(E) "[AR] Creating $@"

Loading…
Cancel
Save