1
0
forked from 0ad/0ad

OS X compile fix (hopefully): add definition for O_DIRECT

This was SVN commit r9581.
This commit is contained in:
janwas 2011-05-30 21:49:33 +00:00
parent 034881d30c
commit ef74ad7f7b
2 changed files with 6 additions and 9 deletions

View File

@ -61,6 +61,12 @@ extern int wclosedir(WDIR*);
// fcntl.h
//
// transfer directly to/from user's buffer.
// treated as a request to enable aio.
#ifndef O_DIRECT // i.e. Windows or OS X
#define O_DIRECT 0x10000000 // (value does not conflict with any current Win32 _O_* flags.)
#endif
// Win32 _wsopen_s does not open files in a manner compatible with waio.
// if its aio_read/aio_write are to be used, waio_open must (also) be called.
// calling both is possible but wasteful and unsafe, since it prevents

View File

@ -53,15 +53,6 @@ typedef unsigned int mode_t; // defined by MinGW but not VC
#define S_ISREG(m) (m & S_IFREG)
//
// <fcntl.h>
// transfer directly to/from user's buffer.
// treated as a request to enable aio (see filesystem.h).
// value does not conflict with any current Win32 _O_* flags.
#define O_DIRECT 0x10000000
//
// <unistd.h>
//