We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a31b5a1 commit db2b210Copy full SHA for db2b210
lib/Interpreter/Compatibility.h
@@ -14,6 +14,7 @@
14
#define dup _dup
15
#define dup2 _dup2
16
#define close _close
17
+#define fileno _fileno
18
#endif
19
20
#if CLANG_VERSION_MAJOR < 19
lib/Interpreter/CppInterOp.cpp
@@ -3304,7 +3304,7 @@ namespace Cpp {
3304
// This seems only neccessary when piping stdout or stderr, but do it
3305
// for ttys to avoid over complicated code for minimal benefit.
3306
::fflush(FD == STDOUT_FILENO ? stdout : stderr);
3307
- if (dup2(_fileno(m_TempFile.get()), FD) < 0)
+ if (dup2(fileno(m_TempFile.get()), FD) < 0)
3308
perror("StreamCaptureInfo:");
3309
}
3310
StreamCaptureInfo(const StreamCaptureInfo&) = delete;
0 commit comments