diff src/os_unix.h @ 29241:1690417aeafe v8.2.5139

patch 8.2.5139: TIME_WITH_SYS_TIME is no longer supported by autoconf Commit: https://github.com/vim/vim/commit/300d71881957f8e60e48eda19002ce5e25fd9c06 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 20 12:01:10 2022 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Jun 2022 13:15:03 +0200
parents 3f5f25f7d8a2
children 3276298c67c5
line wrap: on
line diff
--- 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 <time.h>
-#endif
+#include <time.h>
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h>
 #endif