Unverified Commit e41b4b59 authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #22 from mrjschulte/patch-2

[iOS][tvOS] Add -DHAVE_UNISTD_H flag to compile zlib
parents 7e834dc9 5117cddf
Pipeline #4769 passed with stages
in 6 minutes and 1 second
......@@ -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