Commit fec63089 authored by Alan Third's avatar Alan Third
Browse files

Fix build on macOS (bug#28571)

* src/conf_post.h (HAVE_FUTIMENS, HAVE_FUTIMESAT, HAVE_UTIMENSAT)
[DARWIN_OS]: Undefine.
parent 0f9a78e7
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment