Extra Win32 compatibility.

Change-Id: Ibc583aba580f4fc15c243f495ead44b2ce4c6e5e
This commit is contained in:
Elliott Hughes 2015-02-03 14:26:58 -08:00
parent 6c6f39678c
commit 714196d05c

View file

@ -35,6 +35,12 @@ static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset)
#endif /* __APPLE__ */
#if defined(_WIN32)
#define O_CLOEXEC 0
#define O_NOFOLLOW 0
#define DEFFILEMODE 0666
#endif /* _WIN32 */
#if HAVE_PRINTF_ZD
# define ZD "%zd"
# define ZD_TYPE ssize_t