From 4dfb70d88f61767ca49ea99f844402aa7f4d6ce9 Mon Sep 17 00:00:00 2001 From: Yoshi Sugawara Date: Wed, 25 Nov 2020 22:29:58 -1000 Subject: [PATCH] [iOS][tvOS] Add -DHAVE_UNISTD_H flag to compile zlib --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c6ddb005..13270746 100644 --- a/Makefile +++ b/Makefile @@ -174,7 +174,7 @@ else ifneq (,$(findstring ios,$(platform))) endif HAVE_LIGHTREC = 0 LDFLAGS += $(IPHONEMINVER) - FLAGS += $(IPHONEMINVER) + FLAGS += $(IPHONEMINVER) -DHAVE_UNISTD_H CC += $(IPHONEMINVER) CXX += $(IPHONEMINVER) @@ -184,6 +184,7 @@ else ifeq ($(platform), tvos-arm64) fpic := -fPIC SHARED := -dynamiclib HAVE_LIGHTREC = 0 + FLAGS += -DHAVE_UNISTD_H ifeq ($(IOSSDK),) IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)