[compiler-rt] [compiler-rt] Fix usage of `stdin`/`stdout` (PR #171560)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 9 20:01:37 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Arthur Eubanks (aeubanks)
<details>
<summary>Changes</summary>
>From #<!-- -->170809.
Causes compile errors when `stdin`/`stdout` are #defined in stdio.h.
---
Full diff: https://github.com/llvm/llvm-project/pull/171560.diff
1 Files Affected:
- (modified) compiler-rt/lib/sanitizer_common/sanitizer_posix.h (+1-1)
``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_posix.h
index 063408b8360c1..dc9c3b8822d30 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_posix.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_posix.h
@@ -68,7 +68,7 @@ uptr internal_waitpid(int pid, int *status, int options);
int internal_fork();
bool internal_spawn(const char* argv[], const char* envp[], pid_t* pid,
- fd_t stdin, fd_t stdout);
+ fd_t fd_stdin, fd_t fd_stdout);
int internal_sysctl(const int *name, unsigned int namelen, void *oldp,
uptr *oldlenp, const void *newp, uptr newlen);
``````````
</details>
https://github.com/llvm/llvm-project/pull/171560
More information about the llvm-commits
mailing list