diff options
| author | Alan Third | 2017-09-24 12:01:03 +0100 |
|---|---|---|
| committer | Alan Third | 2017-09-28 19:01:12 +0100 |
| commit | fec63089d53d2196b0348086aeed70277fbc02c0 (patch) | |
| tree | b181f56681718729e33c34707db366fa6c2c761e | |
| parent | 0f9a78e7700ab3eed370c2f616d7932d953dd100 (diff) | |
| download | emacs-fec63089d53d2196b0348086aeed70277fbc02c0.tar.gz emacs-fec63089d53d2196b0348086aeed70277fbc02c0.zip | |
Fix build on macOS (bug#28571)
* src/conf_post.h (HAVE_FUTIMENS, HAVE_FUTIMESAT, HAVE_UTIMENSAT)
[DARWIN_OS]: Undefine.
| -rw-r--r-- | src/conf_post.h | 9 |
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 *); | |||
| 397 | #else | 397 | #else |
| 398 | # define UNINIT /* empty */ | 398 | # define UNINIT /* empty */ |
| 399 | #endif | 399 | #endif |
| 400 | |||
| 401 | /* macOS 10.13 supports futimens, futimesat and utimensat, older | ||
| 402 | versions don't but can appear as though they do. Disable them | ||
| 403 | entirely to avoid breaking cross-version builds on macOS. */ | ||
| 404 | #ifdef DARWIN_OS | ||
| 405 | # undef HAVE_FUTIMENS | ||
| 406 | # undef HAVE_FUTIMESAT | ||
| 407 | # undef HAVE_UTIMENSAT | ||
| 408 | #endif | ||