diff options
| author | Chris Webb <chris@arachsys.com> | 2024-09-17 13:35:08 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-09-17 13:37:54 +0100 |
| commit | b4b3ddae0d93fbd652d1440f87541b81315838aa (patch) | |
| tree | b8777dc2c17958b98d9fd3caceb6cbfe9e4b562d /src | |
| parent | 2e1e15106e4e16f8c4de43b87ec901f569a582cf (diff) | |
Avoid stdin as a function parameter name
9275d96 introduces a use of stdin as a function parameter name, but POSIX
allows stdin to be a macro, which will conflict with this. This breaks
the build on musl systems.
Rename in the same way as the previous fix for this in c7d887d.
Diffstat (limited to 'src')
| -rw-r--r-- | src/shell_manager.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shell_manager.hh b/src/shell_manager.hh index 3dc62e0a..5b42d644 100644 --- a/src/shell_manager.hh +++ b/src/shell_manager.hh @@ -63,12 +63,12 @@ public: const ShellContext& shell_context = {}); std::pair<String, int> eval(StringView cmdline, const Context& context, - StringView stdin, + StringView in, Flags flags = Flags::WaitForStdout, const ShellContext& shell_context = {}) { return eval(cmdline, context, - [stdin]() mutable { return std::exchange(stdin, StringView{}); }, + [in]() mutable { return std::exchange(in, StringView{}); }, flags, shell_context); } |
