Skip to content

Commit

Permalink
Refs #22518: Fix build in Ubuntu24
Browse files Browse the repository at this point in the history
Signed-off-by: cferreiragonz <[email protected]>
  • Loading branch information
cferreiragonz committed Jan 16, 2025
1 parent 771fbfe commit cc731a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/fds/CliDiscoveryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ std::string CliDiscoveryManager::exec_command(
{
std::array<char, 128> buffer;
std::string result;
std::unique_ptr<FILE, decltype(& pclose)> pipe(popen(command.c_str(), "r"), pclose);
std::unique_ptr<FILE, int (*)(
FILE*)> pipe(popen(command.c_str(), "r"), pclose);
if (!pipe)
{
EPROSIMA_LOG_ERROR(CLI, "Error processing command:" << command);
Expand Down

0 comments on commit cc731a2

Please sign in to comment.