Unverified Commit 5117cddf authored by MrJs's avatar MrJs Committed by GitHub
Browse files

[iOS][tvOS] Add -DHAVE_UNISTD_H flag to compile zlib

Core is not compiling for iOS/tvOS because the zlib library needs the HAVE_UNISTD_H to compile for iOS/tvOS. Added it to the Makefile. 
@yoshisuga tracked this down for the other affected cores and we're going through filing the relevant Pr's.
parent 7e834dc9
......@@ -161,7 +161,7 @@ else ifneq (,$(findstring ios,$(platform)))
IPHONEMINVER = -miphoneos-version-min=5.0
endif
LDFLAGS += $(IPHONEMINVER)
FLAGS += $(IPHONEMINVER)
FLAGS += $(IPHONEMINVER) -DHAVE_UNISTD_H
CC += $(IPHONEMINVER)
CXX += $(IPHONEMINVER)
......@@ -170,6 +170,7 @@ else ifeq ($(platform), tvos-arm64)
TARGET := $(TARGET_NAME)_libretro_tvos.dylib
fpic := -fPIC
SHARED := -dynamiclib
FLAGS += -DHAVE_UNISTD_H
ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment