2009-09-07 10:52 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
+ added support for setting non blocking IO mode in OpenWatcom OS2
builds - please test.
This commit is contained in:
@@ -17,6 +17,11 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2009-09-07 10:52 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/source/rtl/hbsocket.c
|
||||
+ added support for setting non blocking IO mode in OpenWatcom OS2
|
||||
builds - please test.
|
||||
|
||||
2009-09-07 10:46 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/source/rtl/hbsocket.c
|
||||
! fixed compilation with WATT-32 in OpenWatcom DOS builds
|
||||
|
||||
@@ -2332,6 +2332,12 @@ int hb_socketSetBlockingIO( HB_SOCKET sd, BOOL fBlocking )
|
||||
ret = 0;
|
||||
}
|
||||
hb_socketSetOsError( ret != -1 ? 0 : HB_SOCK_GETERROR() );
|
||||
#elif defined( HB_OS_OS2 )
|
||||
unsigned long mode = fBlocking ? 0 : 1;
|
||||
ret = ioctl( sd, FIONBIO, ( char * ) &mode );
|
||||
hb_socketSetOsError( ret != -1 ? 0 : HB_SOCK_GETERROR() );
|
||||
if( ret == 0 )
|
||||
ret = 1;
|
||||
#else
|
||||
int TODO;
|
||||
HB_SYMBOL_UNUSED( sd );
|
||||
|
||||
Reference in New Issue
Block a user