Loading...
libdyld/utils.cpp dyld-1066.8 dyld-1162
--- dyld/dyld-1066.8/libdyld/utils.cpp
+++ dyld/dyld-1162/libdyld/utils.cpp
@@ -20,6 +20,10 @@
  *
  * @APPLE_LICENSE_HEADER_END@
  */
+
+#include <TargetConditionals.h>
+
+#if !TARGET_OS_EXCLAVEKIT
 
 #include <string.h>
 #include <sys/mman.h>
@@ -236,10 +240,13 @@
 ///
 /// utils_priv.h
 ///
-const char* _Nullable macho_dylib_install_name(const struct mach_header* _Nonnull mh)
+///
+const char* _Nullable macho_dylib_install_name(const struct mach_header* _Nonnull mh) DYLD_EXCLAVEKIT_UNAVAILABLE
 {
     if ( const MachOFile* mf = MachOFile::isMachO(mh) )
         return mf->installName();
 
     return nullptr;
 }
+
+#endif // !TARGET_OS_EXCLAVEKIT