VirtualBox

Changeset 12348 in vbox


Ignore:
Timestamp:
Sep 10, 2008 12:19:15 PM (16 years ago)
Author:
vboxsync
Message:

DrvHostSerial: build fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp

    r12347 r12348  
    1 /** $Id$ */
     1/* $Id$ */
    22/** @file
    33 * VBox stream I/O devices: Host serial driver
     
    558558
    559559#if defined(RT_OS_DARWIN) /* poll is broken on x86 darwin, returns POLLNVAL. */
    560             fdset RdSet;
    561             FDSET_ZERO(&RdSet);
    562             FDSET_SET(pThis->DeviceFile, &RdSet);
    563             FDSET_SET(pThis->WakeupPipeR, &RdSet);
    564             fdset XcptSet;
    565             FDSET_ZERO(&XcptSet);
    566             FDSET_SET(pThis->DeviceFile, &XcptSet);
    567             FDSET_SET(pThis->WakeupPipeR, &XcptSet);
     560            fd_set RdSet;
     561            FD_ZERO(&RdSet);
     562            FD_SET(pThis->DeviceFile, &RdSet);
     563            FD_SET(pThis->WakeupPipeR, &RdSet);
     564            fd_set XcptSet;
     565            FD_ZERO(&XcptSet);
     566            FD_SET(pThis->DeviceFile, &XcptSet);
     567            FD_SET(pThis->WakeupPipeR, &XcptSet);
    568568            rc = select(RT_MAX(pThis->WakeupPipeR, pThis->DeviceFile) + 1, &RdSet, NULL, &XcptSet, NULL);
    569569            if (rc == -1)
     
    582582
    583583            /* drain the wakeup pipe */
    584             if (   FDSET_ISSET(pThis->WakeupPipeR, &RdSet)
    585                 || FDSET_ISSET(pThis->WakeupPipeR, &XcptSet))
     584            size_t cbRead;
     585            if (   FD_ISSET(pThis->WakeupPipeR, &RdSet)
     586                || FD_ISSET(pThis->WakeupPipeR, &XcptSet))
    586587            {
    587588                rc = RTFileRead(pThis->WakeupPipeR, abBuffer, 1, &cbRead);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette