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:
Przemyslaw Czerpak
2009-09-07 08:53:05 +00:00
parent e3b9cdb19f
commit 1c53b74ba0
2 changed files with 11 additions and 0 deletions

View File

@@ -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

View File

@@ -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 );