posix/fd: define O_BINARY for systems without it

This commit is contained in:
Danny Robson 2018-08-28 13:01:55 +10:00
parent 466fcac687
commit 1392fb40c9

View File

@ -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;