posix/fd: define O_BINARY for systems without it
This commit is contained in:
parent
466fcac687
commit
1392fb40c9
@ -15,6 +15,10 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#if !defined(O_BINARY)
|
||||||
|
#define O_BINARY 0
|
||||||
|
#endif
|
||||||
|
|
||||||
using cruft::posix::fd;
|
using cruft::posix::fd;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user