From 624dc90e258160021b3702a6804e5841e0560505 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 7 May 2009 21:05:07 +0000 Subject: Yeah, more or less like I thought, O_BINARY doesn't really exist on linux, at least, most of them. Now if it does exist, it's used. --- src/file.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/file.cpp b/src/file.cpp index 4776217..b22461a 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -227,7 +227,9 @@ int Bu::File::getPosixFlags( int iFlags ) if( (iFlags&Exclusive) == Exclusive ) iRet |= O_EXCL; +#ifdef O_BINARY iRet |= O_BINARY; +#endif return iRet; } -- cgit v1.2.3