]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Require CLONE_NOOWNERCOPY to be defined for clone on mac (#694)
authorErik Flodin <erik@ejohansson.se>
Thu, 22 Oct 2020 17:52:36 +0000 (19:52 +0200)
committerGitHub <noreply@github.com>
Thu, 22 Oct 2020 17:52:36 +0000 (19:52 +0200)
Fixes #688.

src/Util.cpp

index d223c19b30777f048a1c300f8a064e59a7e864b4..d95806d1840ef5e2964b738822f6436472ebbf94 100644 (file)
@@ -72,7 +72,9 @@ extern "C" {
 #ifdef __APPLE__
 #  ifdef HAVE_SYS_CLONEFILE_H
 #    include <sys/clonefile.h>
-#    define FILE_CLONING_SUPPORTED 1
+#    ifdef CLONE_NOOWNERCOPY
+#      define FILE_CLONING_SUPPORTED 1
+#    endif
 #  endif
 #endif