changeset 18726:ee8cf665dc2e v8.1.2353

patch 8.1.2353: build failure on FreeBSD Commit: https://github.com/vim/vim/commit/5708079a6b144e68bf85503bc3a7779d3a7cc2a6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 28 20:09:58 2019 +0100 patch 8.1.2353: build failure on FreeBSD Problem: Build failure on FreeBSD. Solution: Change #ifdef to only check for Linux-like systems.
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Nov 2019 20:15:04 +0100
parents 1841ac10a17e
children 4ce2720623a2
files src/version.c src/vim.h
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -738,6 +738,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2353,
+/**/
     2351,
 /**/
     2350,
--- 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.