<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From 22a94ab53fbde0a2c161d3cd07e35b0eb78160b9 Mon Sep 17 00:00:00 2001
Date: Sun, 16 May 2021 12:27:31 -0700
Subject: [PATCH 09/24] lib/Support/Unix/Path.inc: define COPYFILE_CLONE if
 needed

---
 llvm/lib/Support/Unix/Path.inc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index a18650aadb6e..3fefd4e7ae91 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -37,6 +37,9 @@
 
 #ifdef __APPLE__
 #include &lt;copyfile.h&gt;
+#ifndef COPYFILE_CLONE
+#define COPYFILE_CLONE  (1&lt;&lt;24)
+#endif
 #include &lt;mach-o/dyld.h&gt;
 #include &lt;sys/attr.h&gt;
 #if __has_include(&lt;sys/clonefile.h&gt;)
</pre></body></html>