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>.
This commit is contained in:
Seth Jackson 2016-01-17 00:19:56 -05:00
parent a7ade5c832
commit 4f18e0f678
7 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@
#include <inttypes.h>
#include <stdbool.h>
#include <string.h>
#include <fcntl.h>
#include "nvim/vim.h"
#include "nvim/ascii.h"

View File

@ -7,6 +7,7 @@
#include <stdbool.h>
#include <string.h>
#include <inttypes.h>
#include <fcntl.h>
#include "nvim/vim.h"
#include "nvim/ascii.h"

View File

@ -11,6 +11,7 @@
#include <assert.h>
#include <errno.h>
#include <inttypes.h>
#include <fcntl.h>
#include "nvim/vim.h"
#include "nvim/ascii.h"

View File

@ -40,6 +40,7 @@
#include <limits.h>
#include <string.h>
#include <stdbool.h>
#include <fcntl.h>
#include "nvim/vim.h"
#include "nvim/ascii.h"

View File

@ -38,6 +38,7 @@
#include <inttypes.h>
#include <string.h>
#include <stdbool.h>
#include <fcntl.h>
#include "nvim/ascii.h"
#include "nvim/vim.h"

View File

@ -5,6 +5,7 @@
#include <stdint.h>
#include <inttypes.h>
#include <errno.h>
#include <fcntl.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif

View File

@ -77,6 +77,7 @@
#include <limits.h>
#include <stdbool.h>
#include <string.h>
#include <fcntl.h>
#include "nvim/vim.h"
#include "nvim/ascii.h"