stupid macos

This commit is contained in:
lizzie
2026-02-23 05:15:17 +00:00
parent be83ecaa05
commit 657ef99529
3 changed files with 7 additions and 2 deletions
+1
View File
@@ -13,6 +13,7 @@ fi
cmake -G Xcode -B build \
-DCMAKE_TOOLCHAIN_FILE="$WORK_DIR/.ci/ios/ios-toolchain.cmake" \
-DPLATFORM=OS64 \
-DDEPLOYMENT_TARGET=16.0 \
-DCOCOA_LIBRARY="$IOS_SDK/System/Library/Frameworks/Cocoa.framework" \
-DENABLE_LIBUSB=OFF \
-DENABLE_UPDATE_CHECKER=OFF \
+1 -1
View File
@@ -57,7 +57,7 @@ endif()
# This fixes some quirks with xcrun or weird iOS toolchain cmake files
if (IOS)
unser(CXX_CLANG)
unset(CXX_CLANG)
set(CXX_APPLE ON)
endif()
+5 -1
View File
@@ -27,7 +27,6 @@
#include <sys/random.h>
#elif defined(__APPLE__)
#include <sys/types.h>
#include <sys/random.h>
#include <mach/vm_map.h>
#include <mach/mach.h>
#elif defined(__FreeBSD__)
@@ -36,6 +35,11 @@
#include <orbis/libkernel.h>
#endif
// Not available on iOS for some fucking stupid reason...
#if defined(__APPLE__) && TARGET_OS_MAC
#include <sys/random.h>
#endif
// FreeBSD
#ifndef MAP_NORESERVE
#define MAP_NORESERVE 0