]> granicus.if.org Git - vim/commitdiff
patch 8.1.2353: build failure on FreeBSD v8.1.2353
authorBram Moolenaar <Bram@vim.org>
Thu, 28 Nov 2019 19:09:58 +0000 (20:09 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 28 Nov 2019 19:09:58 +0000 (20:09 +0100)
Problem:    Build failure on FreeBSD.
Solution:   Change #ifdef to only check for Linux-like systems.

src/version.c
src/vim.h

index 4c7c3808bd26e9ad294aa63359333ae6ac61b1f5..0e2f7faf2474353ab4518279960c502059a8737d 100644 (file)
@@ -737,6 +737,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2353,
 /**/
     2352,
 /**/
index 9b49ba1a9b93adcb84e0bab5d7e3c2be0329a7a0..b7f738798ef8a4fa256bdde7a9979d960b37bffa 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
 
-# if defined(UNIX) && !defined(MACOS_X)
+# if defined(__gnu_linux__) || defined(__CYGWIN__)
 // 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.