aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2016-01-14 17:19:36 -0500
committerMichael Reed <m.reed@mykolab.com>2016-01-14 23:36:58 -0500
commit729064af5fd154716a644fb89c1b165e44972454 (patch)
tree4700d63d4be5988039a1944c7369f3bccb63f344
parent403467056818dce535059c87f289db00b0d4216c (diff)
downloadrneovim-729064af5fd154716a644fb89c1b165e44972454.tar.gz
rneovim-729064af5fd154716a644fb89c1b165e44972454.tar.bz2
rneovim-729064af5fd154716a644fb89c1b165e44972454.zip
test: sys/fcntl.h -> fcntl.h
POSIX.1-2008[1] says that the latter should be used, and all of our supported platforms would seem to support this scheme, apparently even Windows[2]. [1]: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html [2]: https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx
-rw-r--r--test/includes/pre/fcntl.h (renamed from test/includes/pre/sys/fcntl.h)2
-rw-r--r--test/unit/os/fs_spec.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/includes/pre/sys/fcntl.h b/test/includes/pre/fcntl.h
index 767c97a631..9c50ed5b1d 100644
--- a/test/includes/pre/sys/fcntl.h
+++ b/test/includes/pre/fcntl.h
@@ -1,4 +1,4 @@
-#include <sys/fcntl.h>
+#include <fcntl.h>
static const mode_t kO_RDONLY = O_RDONLY;
static const mode_t kO_WRONLY = O_WRONLY;
diff --git a/test/unit/os/fs_spec.lua b/test/unit/os/fs_spec.lua
index 95c98f18a1..2f393d353d 100644
--- a/test/unit/os/fs_spec.lua
+++ b/test/unit/os/fs_spec.lua
@@ -22,7 +22,7 @@ cimport('./src/nvim/main.h')
cimport('./src/nvim/fileio.h')
local fs = cimport('./src/nvim/os/os.h')
cppimport('sys/stat.h')
-cppimport('sys/fcntl.h')
+cppimport('fcntl.h')
cppimport('uv-errno.h')
local buffer = ""