diff src/vim.h @ 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 cfe589c1b300
children 49b78d6465e5
line wrap: on
line diff
--- 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.