From: Erik Flodin Date: Thu, 22 Oct 2020 17:52:36 +0000 (+0200) Subject: Require CLONE_NOOWNERCOPY to be defined for clone on mac (#694) X-Git-Tag: v4.1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=411c010c3a5ee690cd42b23ffcf026ae009e2897;p=thirdparty%2Fccache.git Require CLONE_NOOWNERCOPY to be defined for clone on mac (#694) Fixes #688. --- diff --git a/src/Util.cpp b/src/Util.cpp index d223c19b3..d95806d18 100644 --- a/src/Util.cpp +++ b/src/Util.cpp @@ -72,7 +72,9 @@ extern "C" { #ifdef __APPLE__ # ifdef HAVE_SYS_CLONEFILE_H # include -# define FILE_CLONING_SUPPORTED 1 +# ifdef CLONE_NOOWNERCOPY +# define FILE_CLONING_SUPPORTED 1 +# endif # endif #endif