diff options
author | Seth Jackson <sethjackson@gmail.com> | 2016-01-17 00:19:56 -0500 |
---|---|---|
committer | Seth Jackson <sethjackson@gmail.com> | 2016-01-17 00:28:53 -0500 |
commit | 4f18e0f678d117d48d57be286ccc93c50109edcf (patch) | |
tree | 7334d7f658d15cc526b6556ce4a64d18e80f68f4 /src | |
parent | a7ade5c832dc5081afbc3f6bd21657491b27863a (diff) | |
download | rneovim-4f18e0f678d117d48d57be286ccc93c50109edcf.tar.gz rneovim-4f18e0f678d117d48d57be286ccc93c50109edcf.tar.bz2 rneovim-4f18e0f678d117d48d57be286ccc93c50109edcf.zip |
Windows: Include <fcntl.h> for file constants.
This header is required by POSIX for the constants (O_RDONLY, etc.)
but we were only including it on Unix systems as a side effect of
including <unistd.h>.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_cmds2.c | 1 | ||||
-rw-r--r-- | src/nvim/fileio.c | 1 | ||||
-rw-r--r-- | src/nvim/if_cscope.c | 1 | ||||
-rw-r--r-- | src/nvim/memfile.c | 1 | ||||
-rw-r--r-- | src/nvim/memline.c | 1 | ||||
-rw-r--r-- | src/nvim/shada.c | 1 | ||||
-rw-r--r-- | src/nvim/undo.c | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 57153cf5a1..47774f5a99 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -6,6 +6,7 @@ #include <inttypes.h> #include <stdbool.h> #include <string.h> +#include <fcntl.h> #include "nvim/vim.h" #include "nvim/ascii.h" diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 9069a46151..97360d1881 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -7,6 +7,7 @@ #include <stdbool.h> #include <string.h> #include <inttypes.h> +#include <fcntl.h> #include "nvim/vim.h" #include "nvim/ascii.h" diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c index 2a766734fe..d236501b3f 100644 --- a/src/nvim/if_cscope.c +++ b/src/nvim/if_cscope.c @@ -11,6 +11,7 @@ #include <assert.h> #include <errno.h> #include <inttypes.h> +#include <fcntl.h> #include "nvim/vim.h" #include "nvim/ascii.h" diff --git a/src/nvim/memfile.c b/src/nvim/memfile.c index 137c7c49d3..8cf5642a80 100644 --- a/src/nvim/memfile.c +++ b/src/nvim/memfile.c @@ -40,6 +40,7 @@ #include <limits.h> #include <string.h> #include <stdbool.h> +#include <fcntl.h> #include "nvim/vim.h" #include "nvim/ascii.h" diff --git a/src/nvim/memline.c b/src/nvim/memline.c index c91a25df6e..f58b2ac38f 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -38,6 +38,7 @@ #include <inttypes.h> #include <string.h> #include <stdbool.h> +#include <fcntl.h> #include "nvim/ascii.h" #include "nvim/vim.h" diff --git a/src/nvim/shada.c b/src/nvim/shada.c index 59ef2a0d28..dcdf2195f8 100644 --- a/src/nvim/shada.c +++ b/src/nvim/shada.c @@ -5,6 +5,7 @@ #include <stdint.h> #include <inttypes.h> #include <errno.h> +#include <fcntl.h> #ifdef HAVE_UNISTD_H # include <unistd.h> #endif diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 69ac18ad54..6b60f95f22 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -77,6 +77,7 @@ #include <limits.h> #include <stdbool.h> #include <string.h> +#include <fcntl.h> #include "nvim/vim.h" #include "nvim/ascii.h" |