>From d77a2e45004f5d6d8496e5fed260774205efe42a Mon Sep 17 00:00:00 2001 From: Alan Third Date: Sun, 24 Sep 2017 12:01:03 +0100 Subject: [PATCH] Fix build on macOS (bug#28571) * src/conf_post.h (HAVE_FUTIMENS, HAVE_FUTIMESAT) [DARWIN_OS]: Undefine. --- src/conf_post.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/conf_post.h b/src/conf_post.h index febdb8b8bf..dfdb0aa3eb 100644 --- a/src/conf_post.h +++ b/src/conf_post.h @@ -397,3 +397,11 @@ extern int emacs_setenv_TZ (char const *); #else # define UNINIT /* empty */ #endif + +/* macOS 10.13 supports futimens and futimesat, older versions don't + but can appear as though they do. Disable them entirely to avoid + breaking cross-version builds on macOS. */ +#ifdef DARWIN_OS +# undef HAVE_FUTIMENS +# undef HAVE_FUTIMESAT +#endif -- 2.14.1