summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/conf_post.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/conf_post.h b/src/conf_post.h
index febdb8b8bf7..af946082eec 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -397,3 +397,12 @@ extern int emacs_setenv_TZ (char const *);
#else
# define UNINIT /* empty */
#endif
+
+/* macOS 10.13 supports futimens, futimesat and utimensat, 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
+# undef HAVE_UTIMENSAT
+#endif