Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

Commit

Permalink
Fix Linux compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
pierricgimmig committed Jan 6, 2025
1 parent b7c411f commit 2f6c79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OrbitBase/ExecuteCommandLinux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
namespace orbit_base {

std::optional<std::string> ExecuteCommand(std::string_view cmd) {
std::unique_ptr<FILE, decltype(&pclose)> pipe{popen(std::string{cmd}.c_str(), "r"), pclose};
std::unique_ptr<FILE, int (*)(FILE*)> pipe{popen(std::string{cmd}.c_str(), "r"), pclose};
if (!pipe) {
ORBIT_ERROR("Could not open pipe for \"%s\"", cmd);
return std::optional<std::string>{};
Expand Down

0 comments on commit 2f6c79a

Please sign in to comment.