aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid <david@xagasoft.com>2008-09-26 14:55:11 +0000
committerDavid <david@xagasoft.com>2008-09-26 14:55:11 +0000
commit467c255511749f018c4572017c9e0e87275524ac (patch)
tree715b282f174cdbca96afe0b70d3b8ca17a839e9a /src
parent4ff8dce62307257fd8df146e29b4223a7df456f8 (diff)
downloadlibbu++-467c255511749f018c4572017c9e0e87275524ac.tar.gz
libbu++-467c255511749f018c4572017c9e0e87275524ac.tar.bz2
libbu++-467c255511749f018c4572017c9e0e87275524ac.tar.xz
libbu++-467c255511749f018c4572017c9e0e87275524ac.zip
david - got it compiling for windows again: made Bu::File::setBlocking a stub. We are going to need some windows api stuff to do that...
Diffstat (limited to 'src')
-rw-r--r--src/file.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file.cpp b/src/file.cpp
index 83d76c5..b3bae96 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -139,6 +139,9 @@ bool Bu::File::isBlocking()
139 139
140void Bu::File::setBlocking( bool bBlocking ) 140void Bu::File::setBlocking( bool bBlocking )
141{ 141{
142#ifdef WIN32
143 fprintf(stderr, "STUB: Bu::File::setBlocking\n");
144#else
142 if( bBlocking ) 145 if( bBlocking )
143 fcntl( 146 fcntl(
144 fileno( fh ), 147 fileno( fh ),
@@ -149,6 +152,7 @@ void Bu::File::setBlocking( bool bBlocking )
149 fileno( fh ), 152 fileno( fh ),
150 F_SETFL, fcntl( fileno( fh ), F_GETFL, 0 )|O_NONBLOCK 153 F_SETFL, fcntl( fileno( fh ), F_GETFL, 0 )|O_NONBLOCK
151 ); 154 );
155#endif
152} 156}
153 157
154#ifndef WIN32 158#ifndef WIN32