Fix build on macOS (bug#28571)
* src/conf_post.h (HAVE_FUTIMENS, HAVE_FUTIMESAT, HAVE_UTIMENSAT) [DARWIN_OS]: Undefine.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user