diff options
Diffstat (limited to 'libc/src/stdlib/gpu/system.cpp')
-rw-r--r-- | libc/src/stdlib/gpu/system.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/src/stdlib/gpu/system.cpp b/libc/src/stdlib/gpu/system.cpp index acf3a8c..1890006 100644 --- a/libc/src/stdlib/gpu/system.cpp +++ b/libc/src/stdlib/gpu/system.cpp @@ -19,8 +19,9 @@ LLVM_LIBC_FUNCTION(int, system, (const char *command)) { int ret; rpc::Client::Port port = rpc::client.open<RPC_SYSTEM>(); port.send_n(command, internal::string_length(command) + 1); - port.recv( - [&](rpc::Buffer *buffer) { ret = static_cast<int>(buffer->data[0]); }); + port.recv([&](rpc::Buffer *buffer, uint32_t) { + ret = static_cast<int>(buffer->data[0]); + }); port.close(); return ret; |