remove references to <sys/time.h>

Since gettimeofday() was replaced by os_time in
fb5a786bdb we do not need sys/time.h.
This commit is contained in:
Justin M. Keyes 2015-08-24 00:26:47 -04:00
parent e7b58b4e53
commit 7280e8c365
3 changed files with 0 additions and 12 deletions

View File

@ -44,7 +44,6 @@
#cmakedefine HAVE_STRNCASECMP
#cmakedefine HAVE_STROPTS_H
#cmakedefine HAVE_SYS_PARAM_H
#cmakedefine HAVE_SYS_TIME_H
#cmakedefine HAVE_SYS_UTSNAME_H
#cmakedefine HAVE_SYS_WAIT_H
#cmakedefine HAVE_UNISTD_H
@ -54,7 +53,6 @@
#cmakedefine HAVE_WORKING_LIBINTL
#define RETSIGTYPE void
#define SIGRETURN return
#define TIME_WITH_SYS_TIME 1
#cmakedefine UNIX
#cmakedefine USE_FNAME_CASE
#define USEMAN_S 1

View File

@ -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

View File

@ -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