Changeset 95888 in vbox for trunk/src/VBox
- Timestamp:
- Jul 28, 2022 1:44:48 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/stream.cpp
r95886 r95888 33 33 * Standalone streams w/o depending on stdio.h, using our RTFile API for 34 34 * 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) 36 36 # define RTSTREAM_STANDALONE 37 37 #endif … … 781 781 #else 782 782 struct termios Termios; 783 int rcPosix = tcgetattr((int) fh, &Termios);783 int rcPosix = tcgetattr((int)hNative, &Termios); 784 784 if (!rcPosix) 785 785 *pfEchoChars = RT_BOOL(Termios.c_lflag & ECHO); … … 843 843 #else 844 844 struct termios Termios; 845 int rcPosix = tcgetattr( fh, &Termios);845 int rcPosix = tcgetattr((int)hNative, &Termios); 846 846 if (!rcPosix) 847 847 { … … 851 851 Termios.c_lflag &= ~ECHO; 852 852 853 rcPosix = tcsetattr( fh, TCSAFLUSH, &Termios);853 rcPosix = tcsetattr((int)hNative, TCSAFLUSH, &Termios); 854 854 if (rcPosix == 0) 855 855 rc = VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.