From 9217ea23570ed16c798faf61f1a93410b9d21207 Mon Sep 17 00:00:00 2001 From: Popvue Date: Thu, 22 Oct 2026 18:27:21 +0000 Subject: [PATCH 4/8] Popvue: libvlc patch for zlib with the iOS 18+ SDKs --- ...trib-zlib-build-with-the-iOS-18-SDKs.patch | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 libvlc/patches/0050-contrib-zlib-build-with-the-iOS-18-SDKs.patch diff --git a/libvlc/patches/0050-contrib-zlib-build-with-the-iOS-18-SDKs.patch b/libvlc/patches/0050-contrib-zlib-build-with-the-iOS-18-SDKs.patch new file mode 100644 index 00000000..6a6440f3 --- /dev/null +++ b/libvlc/patches/0050-contrib-zlib-build-with-the-iOS-18-SDKs.patch @@ -0,0 +1,45 @@ +From 1f26fd023ec4fe8b46fb392c5ec1f0d22031eeeb Mon Sep 17 00:00:00 2001 +From: Popvue +Date: Thu, 22 Oct 2026 18:27:09 +0000 +Subject: [PATCH] contrib: zlib: build with the iOS 18+ SDKs + +zlib 1.2.13 defines fdopen() as NULL whenever TARGET_OS_MAC is defined, which the newer +Apple SDKs' stdio.h declares as a function; zlib 1.3 dropped the TARGET_OS_MAC test. +--- + contrib/src/zlib/no-target-os-mac.patch | 11 +++++++++++ + contrib/src/zlib/rules.mak | 1 + + 2 files changed, 12 insertions(+) + create mode 100644 contrib/src/zlib/no-target-os-mac.patch + +diff --git a/contrib/src/zlib/no-target-os-mac.patch b/contrib/src/zlib/no-target-os-mac.patch +new file mode 100644 +index 0000000000..fa93c935b1 +--- /dev/null ++++ b/contrib/src/zlib/no-target-os-mac.patch +@@ -0,0 +1,11 @@ ++--- a/zutil.h 2026-10-22 18:26:59 +++++ b/zutil.h 2026-10-22 18:26:59 ++@@ -137,7 +137,7 @@ ++ # endif ++ #endif ++ ++-#if defined(MACOS) || defined(TARGET_OS_MAC) +++#if defined(MACOS) ++ # define OS_CODE 7 ++ # ifndef Z_SOLO ++ # if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os +diff --git a/contrib/src/zlib/rules.mak b/contrib/src/zlib/rules.mak +index 4dfd37a2e9..432c55f4cf 100644 +--- a/contrib/src/zlib/rules.mak ++++ b/contrib/src/zlib/rules.mak +@@ -21,6 +21,7 @@ $(TARBALLS)/zlib-$(ZLIB_VERSION).tar.xz: + zlib: zlib-$(ZLIB_VERSION).tar.xz .sum-zlib + $(UNPACK) + $(APPLY) $(SRC)/zlib/no-shared.patch ++ $(APPLY) $(SRC)/zlib/no-target-os-mac.patch + $(MOVE) + + .zlib: zlib +-- +2.50.1 (Apple Git-155) + -- 2.50.1 (Apple Git-155)