From 300d71881957f8e60e48eda19002ce5e25fd9c06 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 20 Jun 2022 12:01:10 +0100 Subject: [PATCH] patch 8.2.5139: TIME_WITH_SYS_TIME is no longer supported by autoconf Problem: TIME_WITH_SYS_TIME is no longer supported by autoconf. Solution: Always include time.h. --- src/os_unix.h | 5 +---- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/os_unix.h b/src/os_unix.h index c3a7fec19a..00ae239ea2 100644 --- a/src/os_unix.h +++ b/src/os_unix.h @@ -128,10 +128,7 @@ # endif #endif -// on some systems time.h should not be included together with sys/time.h -#if !defined(HAVE_SYS_TIME_H) || defined(TIME_WITH_SYS_TIME) -# include -#endif +#include #ifdef HAVE_SYS_TIME_H # include #endif diff --git a/src/version.c b/src/version.c index 0422787384..370c4d06f3 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 5139, /**/ 5138, /**/