diff options
author | David <david@xagasoft.com> | 2008-10-02 18:31:38 +0000 |
---|---|---|
committer | David <david@xagasoft.com> | 2008-10-02 18:31:38 +0000 |
commit | 79ee32aa24e31d5bb786d0c162ad8145cc7c1f35 (patch) | |
tree | 4f473c795ebdc6c70fea4943cde9e3c556e5890b /src/file.cpp | |
parent | 322b785e7a686ea72f7c89e6ad9529a547c62eed (diff) | |
download | libbu++-79ee32aa24e31d5bb786d0c162ad8145cc7c1f35.tar.gz libbu++-79ee32aa24e31d5bb786d0c162ad8145cc7c1f35.tar.bz2 libbu++-79ee32aa24e31d5bb786d0c162ad8145cc7c1f35.tar.xz libbu++-79ee32aa24e31d5bb786d0c162ad8145cc7c1f35.zip |
david apparently window doesn't have O_NONBLOCK
Diffstat (limited to 'src/file.cpp')
-rw-r--r-- | src/file.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/file.cpp b/src/file.cpp index 9c8ae90..29d2805 100644 --- a/src/file.cpp +++ b/src/file.cpp | |||
@@ -200,8 +200,10 @@ int Bu::File::getPosixFlags( int iFlags ) | |||
200 | iRet |= O_APPEND; | 200 | iRet |= O_APPEND; |
201 | if( (iFlags&Truncate) ) | 201 | if( (iFlags&Truncate) ) |
202 | iRet |= O_TRUNC; | 202 | iRet |= O_TRUNC; |
203 | #ifndef WIN32 | ||
203 | if( (iFlags&NonBlock) ) | 204 | if( (iFlags&NonBlock) ) |
204 | iRet |= O_NONBLOCK; | 205 | iRet |= O_NONBLOCK; |
206 | #endif | ||
205 | if( (iFlags&Exclusive) ) | 207 | if( (iFlags&Exclusive) ) |
206 | iRet |= O_EXCL; | 208 | iRet |= O_EXCL; |
207 | 209 | ||