From 729064af5fd154716a644fb89c1b165e44972454 Mon Sep 17 00:00:00 2001 From: Michael Reed Date: Thu, 14 Jan 2016 17:19:36 -0500 Subject: 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 --- test/includes/pre/fcntl.h | 7 +++++++ test/includes/pre/sys/fcntl.h | 7 ------- test/unit/os/fs_spec.lua | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 test/includes/pre/fcntl.h delete mode 100644 test/includes/pre/sys/fcntl.h (limited to 'test') diff --git a/test/includes/pre/fcntl.h b/test/includes/pre/fcntl.h new file mode 100644 index 0000000000..9c50ed5b1d --- /dev/null +++ b/test/includes/pre/fcntl.h @@ -0,0 +1,7 @@ +#include + +static const mode_t kO_RDONLY = O_RDONLY; +static const mode_t kO_WRONLY = O_WRONLY; +static const mode_t kO_RDWR = O_RDWR; +static const mode_t kO_CREAT = O_CREAT; +static const mode_t kO_EXCL = O_EXCL; diff --git a/test/includes/pre/sys/fcntl.h b/test/includes/pre/sys/fcntl.h deleted file mode 100644 index 767c97a631..0000000000 --- a/test/includes/pre/sys/fcntl.h +++ /dev/null @@ -1,7 +0,0 @@ -#include - -static const mode_t kO_RDONLY = O_RDONLY; -static const mode_t kO_WRONLY = O_WRONLY; -static const mode_t kO_RDWR = O_RDWR; -static const mode_t kO_CREAT = O_CREAT; -static const mode_t kO_EXCL = O_EXCL; 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 = "" -- cgit