[libc-commits] [libc] [libc] Fix standard streams variable name typos in overlay mode. (PR #210728)
Alex Strelnikov via libc-commits
libc-commits at lists.llvm.org
Mon Jul 20 07:15:03 PDT 2026
https://github.com/strel-12 created https://github.com/llvm/llvm-project/pull/210728
These appear to be a couple of copy/paste misses from #187522.
>From debec04fa182193e8d5bf96fa7d011afa645bd3a Mon Sep 17 00:00:00 2001
From: Alex Strelnikov <strel at google.com>
Date: Mon, 20 Jul 2026 14:11:06 +0000
Subject: [PATCH] Fix variable name typos in overlay mode.
---
libc/src/stdio/linux/stdin.cpp | 2 +-
libc/src/stdio/linux/stdout.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libc/src/stdio/linux/stdin.cpp b/libc/src/stdio/linux/stdin.cpp
index 101a89922e078..629772714923e 100644
--- a/libc/src/stdio/linux/stdin.cpp
+++ b/libc/src/stdio/linux/stdin.cpp
@@ -29,6 +29,6 @@ LLVM_LIBC_VARIABLE(FILE *, stdin) = reinterpret_cast<FILE *>(&StdIn);
#else // overlay mode
-extern "C" FILE *stderr;
+extern "C" FILE *stdin;
#endif // LIBC_FULL_BUILD
diff --git a/libc/src/stdio/linux/stdout.cpp b/libc/src/stdio/linux/stdout.cpp
index a9e10b016e46c..d0731c9a218f3 100644
--- a/libc/src/stdio/linux/stdout.cpp
+++ b/libc/src/stdio/linux/stdout.cpp
@@ -29,6 +29,6 @@ LLVM_LIBC_VARIABLE(FILE *, stdout) = reinterpret_cast<FILE *>(&StdOut);
#else // overlay mode
-extern "C" FILE *stderr;
+extern "C" FILE *stdout;
#endif // LIBC_FULL_BUILD
More information about the libc-commits
mailing list