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

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