aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memfile.c
diff options
context:
space:
mode:
authorSeth Jackson <sethjackson@gmail.com>2016-01-17 00:19:56 -0500
committerSeth Jackson <sethjackson@gmail.com>2016-01-17 00:28:53 -0500
commit4f18e0f678d117d48d57be286ccc93c50109edcf (patch)
tree7334d7f658d15cc526b6556ce4a64d18e80f68f4 /src/nvim/memfile.c
parenta7ade5c832dc5081afbc3f6bd21657491b27863a (diff)
downloadrneovim-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/nvim/memfile.c')
-rw-r--r--src/nvim/memfile.c1
1 files changed, 1 insertions, 0 deletions
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"