From 3701fb6ca345848d3c4744e6d5ce67867ffb8537 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Sat, 11 Oct 2025 23:54:46 +0300 Subject: [PATCH] Fix broken iOS build --- third_party/host_memory/host_memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/host_memory/host_memory.cpp b/third_party/host_memory/host_memory.cpp index 69f8ea17..e7f08192 100644 --- a/third_party/host_memory/host_memory.cpp +++ b/third_party/host_memory/host_memory.cpp @@ -18,7 +18,7 @@ #include "dynamic_library.hpp" -#elif defined(__linux__) || defined(__FreeBSD__) || defined(TARGET_OS_OSX) // ^^^ Windows ^^^ vvv Linux vvv +#elif defined(__linux__) || defined(__FreeBSD__) || (defined(TARGET_OS_OSX) && TARGET_OS_OSX == 1) // ^^^ Windows ^^^ vvv Linux vvv #ifndef __linux__ #define memfd_create(name, x) \ @@ -770,4 +770,4 @@ namespace Common { } } -} // namespace Common \ No newline at end of file +} // namespace Common