]> granicus.if.org Git - vim/commitdiff
patch 8.1.2347: MacOS: build fails v8.1.2347
authorBram Moolenaar <Bram@vim.org>
Tue, 26 Nov 2019 13:48:00 +0000 (14:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 26 Nov 2019 13:48:00 +0000 (14:48 +0100)
Problem:    MacOS: build fails.
Solution:   Don't define _XOPEN_SOURCE for Mac.

src/version.c
src/vim.h

index b47808dd839a26ae9d3d188a00839ac02ea52230..981f92fac456becd7fbd5387e36166ccbbf1c51c 100644 (file)
@@ -737,6 +737,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2347,
 /**/
     2346,
 /**/
index c53b1416f2b7be5de511f0cad756fc7639752947..9b49ba1a9b93adcb84e0bab5d7e3c2be0329a7a0 100644 (file)
--- a/src/vim.h
+++ b/src/vim.h
@@ -36,7 +36,7 @@
     Error: configure did not run properly.  Check auto/config.log.
 # endif
 
-# ifdef UNIX
+# if defined(UNIX) && !defined(MACOS_X)
 // Needed for strptime().  Needs to be done early, since header files can
 // include other header files and end up including time.h, where these symbols
 // matter for Vim.