From b4e5567935d7d2d6b584b48c72a19a74be9381f0 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Sun, 7 Apr 2024 15:53:15 +0800 Subject: [PATCH] Fix for missing gethostuuid on powerpc --- llvm/lib/Support/LockFileManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/LockFileManager.cpp b/llvm/lib/Support/LockFileManager.cpp index 77baf7ac4bd..a15809fd5ba 100644 --- a/llvm/lib/Support/LockFileManager.cpp +++ b/llvm/lib/Support/LockFileManager.cpp @@ -31,7 +31,7 @@ #include #endif -#if defined(__APPLE__) && defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && (__MAC_OS_X_VERSION_MIN_REQUIRED > 1050) +#if defined(__APPLE__) && !defined(__POWERPC__) && (MAC_OS_X_VERSION_MIN_REQUIRED > 1050) #define USE_OSX_GETHOSTUUID 1 #else #define USE_OSX_GETHOSTUUID 0