Merge pull request #764 from yoshisuga/ios-tvos-unistd

[iOS][tvOS] Add -DHAVE_UNISTD_H flag to compile zlib
This commit is contained in:
Autechre 2020-11-27 22:34:16 +01:00 committed by GitHub
commit 91f34cf864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)