aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSeth Jackson <sethjackson@gmail.com>2016-01-17 09:47:26 -0500
committerSeth Jackson <sethjackson@gmail.com>2016-01-18 13:48:47 -0500
commit33321f2c856f04d2a928c89fed1b6d46012b0bc9 (patch)
treeca533fa9b10e2c7cdb9d6666f96e8d66028e9702 /config
parentee0e214427d7ed2a9fd8ffc85c424cfffc927408 (diff)
downloadrneovim-33321f2c856f04d2a928c89fed1b6d46012b0bc9.tar.gz
rneovim-33321f2c856f04d2a928c89fed1b6d46012b0bc9.tar.bz2
rneovim-33321f2c856f04d2a928c89fed1b6d46012b0bc9.zip
config: Remove HAVE_UNISTD_H.
Unix systems must have this header but Windows does not have it at all. Since src/nvim/os/unix_defs.h includes <unistd.h> without the guard in order to avoid including this in the numerous places we would need <unistd.h> on Unix we just include src/nvim/os/os.h which will pull in <unistd.h> for us.
Diffstat (limited to 'config')
-rw-r--r--config/CMakeLists.txt1
-rw-r--r--config/config.h.in1
2 files changed, 0 insertions, 2 deletions
diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt
index 2d3c484845..eaf06ba7f2 100644
--- a/config/CMakeLists.txt
+++ b/config/CMakeLists.txt
@@ -26,7 +26,6 @@ if(NOT HAVE_SYS_WAIT_H AND UNIX)
message(SEND_ERROR "header sys/wait.h is required for Unix")
endif()
check_include_files(sys/utsname.h HAVE_SYS_UTSNAME_H)
-check_include_files(unistd.h HAVE_UNISTD_H)
check_include_files(utime.h HAVE_UTIME_H)
# Functions
diff --git a/config/config.h.in b/config/config.h.in
index 1eafc8cb95..27705f8b38 100644
--- a/config/config.h.in
+++ b/config/config.h.in
@@ -39,7 +39,6 @@
#cmakedefine HAVE_STRNCASECMP
#cmakedefine HAVE_SYS_UTSNAME_H
#cmakedefine HAVE_SYS_WAIT_H
-#cmakedefine HAVE_UNISTD_H
#cmakedefine HAVE_UTIME
#cmakedefine HAVE_UTIME_H
#cmakedefine HAVE_UTIMES