aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-02-01 00:07:23 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-02-01 00:07:23 -0500
commitee5c4f8a2b4c0b6f7bce3ab7ff0ed8460206ec94 (patch)
tree70c5b70599081743ff9080f4f6c07dfd84bb5d3c /src
parent8f22031708b351ec5bb73952e6afc39b07a72ae2 (diff)
parent33321f2c856f04d2a928c89fed1b6d46012b0bc9 (diff)
downloadrneovim-ee5c4f8a2b4c0b6f7bce3ab7ff0ed8460206ec94.tar.gz
rneovim-ee5c4f8a2b4c0b6f7bce3ab7ff0ed8460206ec94.tar.bz2
rneovim-ee5c4f8a2b4c0b6f7bce3ab7ff0ed8460206ec94.zip
Merge pull request #4030 from sethjackson/unistd
config: Remove HAVE_UNISTD_H
Diffstat (limited to 'src')
-rw-r--r--src/nvim/log.c4
-rw-r--r--src/nvim/os/unix_defs.h2
-rw-r--r--src/nvim/shada.c3
3 files changed, 1 insertions, 8 deletions
diff --git a/src/nvim/log.c b/src/nvim/log.c
index 5767da03af..773d497881 100644
--- a/src/nvim/log.c
+++ b/src/nvim/log.c
@@ -10,10 +10,6 @@
#include "nvim/os/os.h"
#include "nvim/os/time.h"
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
#define USR_LOG_FILE "$HOME" _PATHSEPSTR ".nvimlog"
static uv_mutex_t mutex;
diff --git a/src/nvim/os/unix_defs.h b/src/nvim/os/unix_defs.h
index 78fc9331d1..690a39c3cd 100644
--- a/src/nvim/os/unix_defs.h
+++ b/src/nvim/os/unix_defs.h
@@ -2,7 +2,7 @@
#define NVIM_OS_UNIX_DEFS_H
// Windows doesn't have unistd.h, so we include it here to avoid numerous
-// instances of `#ifdef HAVE_UNISTD_H'.
+// instances of `#ifdef WIN32'.
#include <unistd.h>
// POSIX.1-2008 says that NAME_MAX should be in here
diff --git a/src/nvim/shada.c b/src/nvim/shada.c
index dcdf2195f8..def2de9b1a 100644
--- a/src/nvim/shada.c
+++ b/src/nvim/shada.c
@@ -6,9 +6,6 @@
#include <inttypes.h>
#include <errno.h>
#include <fcntl.h>
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
#include <assert.h>
#include <msgpack.h>