Fix build on macOS (bug#28571)

* src/conf_post.h (HAVE_FUTIMENS, HAVE_FUTIMESAT, HAVE_UTIMENSAT)
[DARWIN_OS]: Undefine.
This commit is contained in:
Alan Third 2017-09-24 12:01:03 +01:00
parent 0f9a78e770
commit fec63089d5

View file

@ -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