VirtualBox

Changeset 69894 in vbox


Ignore:
Timestamp:
Nov 30, 2017 10:38:24 PM (7 years ago)
Author:
vboxsync
Message:

Runtime: New serial port API [build fix for non Linux hosts]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/serialport-posix.cpp

    r69892 r69894  
    223223        if (RT_SUCCESS(rc))
    224224        {
     225#ifdef RT_OS_LINUX
    225226            if (pThis->fOpenFlags & RT_SERIALPORT_OPEN_F_ENABLE_LOOPBACK)
    226227            {
     
    238239                    rc = RTErrConvertFromErrno(errno);
    239240            }
     241#else
     242            if (pThis->fOpenFlags & RT_SERIALPORT_OPEN_F_ENABLE_LOOPBACK)
     243                return VERR_NOT_SUPPORTED;
     244#endif
    240245        }
    241246    }
     
    435440#ifdef RT_OS_LINUX
    436441    bool fPoll = false;
    437 #else
    438     const bool fPoll = true;
    439442#endif
    440443
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