aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-05-07 21:05:07 +0000
committerMike Buland <eichlan@xagasoft.com>2009-05-07 21:05:07 +0000
commit624dc90e258160021b3702a6804e5841e0560505 (patch)
treeeae2161565bc5fdb4a86faff80a6aafd3b1c3d70 /src
parentc1d2ae38f8dd16c1c931c5626f12ce9bef8e07c8 (diff)
downloadlibbu++-624dc90e258160021b3702a6804e5841e0560505.tar.gz
libbu++-624dc90e258160021b3702a6804e5841e0560505.tar.bz2
libbu++-624dc90e258160021b3702a6804e5841e0560505.tar.xz
libbu++-624dc90e258160021b3702a6804e5841e0560505.zip
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.
Diffstat (limited to '')
-rw-r--r--src/file.cpp2
1 files changed, 2 insertions, 0 deletions
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 )
227 if( (iFlags&Exclusive) == Exclusive ) 227 if( (iFlags&Exclusive) == Exclusive )
228 iRet |= O_EXCL; 228 iRet |= O_EXCL;
229 229
230#ifdef O_BINARY
230 iRet |= O_BINARY; 231 iRet |= O_BINARY;
232#endif
231 233
232 return iRet; 234 return iRet;
233} 235}