OS X compile fix (hopefully): add definition for O_DIRECT
This was SVN commit r9581.
This commit is contained in:
parent
034881d30c
commit
ef74ad7f7b
@ -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
|
||||
|
@ -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>
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user