aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-08-24 00:26:47 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-08-24 00:27:30 -0400
commit7280e8c365af585400ad9f5da56dcd2f9d043982 (patch)
treea579c93037b29eaf9202eaf857910d8b6ed16bd6 /src
parente7b58b4e533a85f3f3dfc66f4d779f10e53b5467 (diff)
downloadrneovim-7280e8c365af585400ad9f5da56dcd2f9d043982.tar.gz
rneovim-7280e8c365af585400ad9f5da56dcd2f9d043982.tar.bz2
rneovim-7280e8c365af585400ad9f5da56dcd2f9d043982.zip
remove references to <sys/time.h>
Since gettimeofday() was replaced by os_time in fb5a786bdb5b7b52b9c36b3eb8b6d2cc002aa8f3 we do not need sys/time.h.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/log.c3
-rw-r--r--src/nvim/os/os_defs.h7
2 files changed, 0 insertions, 10 deletions
diff --git a/src/nvim/log.c b/src/nvim/log.c
index 236fdb6d12..3575f49e78 100644
--- a/src/nvim/log.c
+++ b/src/nvim/log.c
@@ -10,9 +10,6 @@
#include "nvim/os/os.h"
#include "nvim/os/time.h"
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
diff --git a/src/nvim/os/os_defs.h b/src/nvim/os/os_defs.h
index 1d16111066..4f38e6dcf8 100644
--- a/src/nvim/os/os_defs.h
+++ b/src/nvim/os/os_defs.h
@@ -33,14 +33,7 @@
# define SIGDUMMYARG
#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
-
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
#if defined(DIRSIZ) && !defined(MAXNAMLEN)
# define MAXNAMLEN DIRSIZ