From 11dbae1d7ae5c0d93104183fd3b2d3b5cb48eec8 Mon Sep 17 00:00:00 2001 From: p-x9 <50244599+p-x9@users.noreply.github.com> Date: Fri, 20 Dec 2024 11:31:46 +0900 Subject: [PATCH 1/2] Fix to avoid redefinition by backport.h --- Sources/MachOKitC/include/backports.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/MachOKitC/include/backports.h b/Sources/MachOKitC/include/backports.h index ebf7780..75ecb80 100644 --- a/Sources/MachOKitC/include/backports.h +++ b/Sources/MachOKitC/include/backports.h @@ -9,6 +9,9 @@ #ifndef backports_h #define backports_h +#ifndef __linux__ + +#include #include #ifndef MH_IMPLICIT_PAGEZERO @@ -41,5 +44,6 @@ #define PLATFORM_VISIONOSSIMULATOR 12 #endif +#endif /* __linux__ */ #endif /* backports_h */ From b0d02f558d7bbb4403b70c0f96c7d95643d31415 Mon Sep 17 00:00:00 2001 From: p-x9 <50244599+p-x9@users.noreply.github.com> Date: Fri, 20 Dec 2024 11:32:16 +0900 Subject: [PATCH 2/2] Fix missing __stddef_size_t.h --- Sources/MachOKitC/include/dyld_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/MachOKitC/include/dyld_cache.h b/Sources/MachOKitC/include/dyld_cache.h index cf54027..d11818b 100644 --- a/Sources/MachOKitC/include/dyld_cache.h +++ b/Sources/MachOKitC/include/dyld_cache.h @@ -11,7 +11,7 @@ #ifndef __linux__ -#include <__stddef_size_t.h> +#include extern const void* _dyld_get_shared_cache_range(size_t* length);