VirtualBox

Changeset 37597 in vbox for trunk/src/VBox/Devices/Serial


Ignore:
Timestamp:
Jun 22, 2011 8:54:05 PM (13 years ago)
Author:
vboxsync
Message:

darwin build fix

File:
1 edited

Legend:

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

    r37596 r37597  
    635635            FD_SET(RTPipeToNative(pThis->hWakeupPipeR), &XcptSet);
    636636# if 1 /* it seems like this select is blocking the write... */
    637             rc = select(RT_MAX(RTFileToPipe(pThis->hWakeupPipeR), RTFileToNative(pThis->hDeviceFileR)) + 1,
     637            rc = select(RT_MAX(RTPipeToNative(pThis->hWakeupPipeR), RTFileToNative(pThis->hDeviceFileR)) + 1,
    638638                        &RdSet, NULL, &XcptSet, NULL);
    639639# else
    640640            struct timeval tv = { 0, 1000 };
    641             rc = select(RTFileToPipe(pThis->hWakeupPipeR), RTFileToNative(pThis->hDeviceFileR) + 1,
     641            rc = select(RTPipeToNative(pThis->hWakeupPipeR), RTFileToNative(pThis->hDeviceFileR) + 1,
    642642                        &RdSet, NULL, &XcptSet, &tv);
    643643# endif
     
    659659            size_t cbRead;
    660660            if (   FD_ISSET(RTPipeToNative(pThis->hWakeupPipeR), &RdSet)
    661                 || FD_ISSET(pThis->hWakeupPipeR, &XcptSet))
     661                || FD_ISSET(RTPipeToNative(pThis->hWakeupPipeR), &XcptSet))
    662662            {
    663663                rc = RTPipeRead(pThis->hWakeupPipeR, abBuffer, 1, &cbRead);
     
    12761276    /* Linux & darwin needs a separate thread which monitors the status lines. */
    12771277# ifndef RT_OS_LINUX
    1278     ioctl(pThis->DeviceFile, TIOCMGET, &pThis->fStatusLines);
     1278    ioctl(RTFileToNative(pThis->hDeviceFile), TIOCMGET, &pThis->fStatusLines);
    12791279# endif
    12801280    rc = PDMDrvHlpThreadCreate(pDrvIns, &pThis->pMonitorThread, pThis, drvHostSerialMonitorThread, drvHostSerialWakeupMonitorThread, 0, RTTHREADTYPE_IO, "SerMon");
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