--- coreutils-8.29/lib/binary-io.h~ +++ coreutils-8.29/lib/binary-io.h @@ -33,6 +33,10 @@ # define BINARY_IO_INLINE _GL_INLINE #endif +#ifndef O_BINARY +#define O_BINARY 0 +#endif + #if O_BINARY # if defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__ # include /* declares setmode() */