VirtualBox

Changeset 95888 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 28, 2022 1:44:48 AM (2 years ago)
Author:
vboxsync
Message:

IPRT/stream.cpp: Added an alternative code configuration for the no-CRT mode based on RTFile. Mostly untested. [build fix] bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/stream.cpp

    r95886 r95888  
    3333 * Standalone streams w/o depending on stdio.h, using our RTFile API for
    3434 * file/whatever access. */
    35 #if defined(IPRT_NO_CRT) || defined(DOXYGEN_RUNNING)
     35#if (defined(IPRT_NO_CRT) && defined(RT_OS_WINDOWS)) || defined(DOXYGEN_RUNNING)
    3636# define RTSTREAM_STANDALONE
    3737#endif
     
    781781#else
    782782    struct termios Termios;
    783     int rcPosix = tcgetattr((int)fh, &Termios);
     783    int rcPosix = tcgetattr((int)hNative, &Termios);
    784784    if (!rcPosix)
    785785        *pfEchoChars = RT_BOOL(Termios.c_lflag & ECHO);
     
    843843#else
    844844    struct termios Termios;
    845     int rcPosix = tcgetattr(fh, &Termios);
     845    int rcPosix = tcgetattr((int)hNative, &Termios);
    846846    if (!rcPosix)
    847847    {
     
    851851            Termios.c_lflag &= ~ECHO;
    852852
    853         rcPosix = tcsetattr(fh, TCSAFLUSH, &Termios);
     853        rcPosix = tcsetattr((int)hNative, TCSAFLUSH, &Termios);
    854854        if (rcPosix == 0)
    855855            rc = VINF_SUCCESS;
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