Merge pull request #178 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:30:27 +01:00 committed by GitHub
commit 1492251aed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,7 @@ else ifneq (,$(findstring ios,$(platform)))
IPHONEMINVER = -miphoneos-version-min=5.0 IPHONEMINVER = -miphoneos-version-min=5.0
endif endif
LDFLAGS += $(IPHONEMINVER) LDFLAGS += $(IPHONEMINVER)
FLAGS += $(IPHONEMINVER) FLAGS += $(IPHONEMINVER) -DHAVE_UNISTD_H
CC += $(IPHONEMINVER) CC += $(IPHONEMINVER)
CXX += $(IPHONEMINVER) CXX += $(IPHONEMINVER)
@ -170,6 +170,7 @@ else ifeq ($(platform), tvos-arm64)
TARGET := $(TARGET_NAME)_libretro_tvos.dylib TARGET := $(TARGET_NAME)_libretro_tvos.dylib
fpic := -fPIC fpic := -fPIC
SHARED := -dynamiclib SHARED := -dynamiclib
FLAGS += -DHAVE_UNISTD_H
ifeq ($(IOSSDK),) ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path) IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)