From b4b3ddae0d93fbd652d1440f87541b81315838aa Mon Sep 17 00:00:00 2001 From: Chris Webb Date: Tue, 17 Sep 2024 13:35:08 +0100 Subject: 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. --- src/shell_manager.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shell_manager.hh') 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 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); } -- cgit v1.2.3