emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 fec6308: Fix build on macOS (bug#28571)


From: Alan Third
Subject: [Emacs-diffs] emacs-26 fec6308: Fix build on macOS (bug#28571)
Date: Thu, 28 Sep 2017 14:05:26 -0400 (EDT)

branch: emacs-26
commit fec63089d53d2196b0348086aeed70277fbc02c0
Author: Alan Third <address@hidden>
Commit: Alan Third <address@hidden>

    Fix build on macOS (bug#28571)
    
    * src/conf_post.h (HAVE_FUTIMENS, HAVE_FUTIMESAT, HAVE_UTIMENSAT)
    [DARWIN_OS]: Undefine.
---
 src/conf_post.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/conf_post.h b/src/conf_post.h
index febdb8b..af94608 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]