Ignore:
Timestamp:
Jun 1, 2009, 10:51:27 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Fixes for Tickets #69 and #71 (by diver) in 3.2 branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/lib/util.c

    r233 r247  
    948948        if((val = sys_fcntl_long(fd, F_GETFL, 0)) == -1)
    949949                return -1;
     950#ifndef __OS2__
    950951        if(set) /* Turn blocking on - ie. clear nonblock flag */
    951952                val &= ~FLAG_TO_SET;
     
    953954                val |= FLAG_TO_SET;
    954955        return sys_fcntl_long( fd, F_SETFL, val);
     956#else
     957        if(set) /* turn blocking on - ie. clear nonblock flag */
     958                val = 0;
     959        else
     960                val = 1;
     961        return os2_ioctl(fd, FIONBIO, (char *) &val, sizeof(val));
     962#endif
     963
    955964#undef FLAG_TO_SET
    956965}
Note: See TracChangeset for help on using the changeset viewer.