From 79ee32aa24e31d5bb786d0c162ad8145cc7c1f35 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 2 Oct 2008 18:31:38 +0000 Subject: david apparently window doesn't have O_NONBLOCK --- buildMinGW.conf | 2 +- src/file.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/buildMinGW.conf b/buildMinGW.conf index 03c9b38..79538e3 100644 --- a/buildMinGW.conf +++ b/buildMinGW.conf @@ -22,7 +22,7 @@ filesIn("src") filter regexp("^src/(.*)\\.h$", "bu/{re:1}.h"): target file, set "CXXFLAGS" += "-I.", #input filesIn("src") filter regexp("^.*\\.cpp$") - input ["src/list.cpp", "src/exceptionbase.cpp", "src/exceptions.cpp", "src/fstring.cpp", "src/file.cpp", "src/hash.cpp", "src/sptr.cpp", "src/tafnode.cpp", "src/tafreader.cpp", "src/tafwriter.cpp", "src/stdstream.cpp", "src/stream.cpp", "src/archive.cpp", "src/archival.cpp"] + input ["src/list.cpp", "src/exceptionbase.cpp", "src/fstring.cpp", "src/file.cpp", "src/hash.cpp", "src/sptr.cpp", "src/tafnode.cpp", "src/tafreader.cpp", "src/tafwriter.cpp", "src/stdstream.cpp", "src/stream.cpp", "src/archive.cpp", "src/archival.cpp"] rule "exe": matches regexp("(.*)\\.win_o$"), 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 ) iRet |= O_APPEND; if( (iFlags&Truncate) ) iRet |= O_TRUNC; +#ifndef WIN32 if( (iFlags&NonBlock) ) iRet |= O_NONBLOCK; +#endif if( (iFlags&Exclusive) ) iRet |= O_EXCL; -- cgit v1.2.3