Skip to content

Commit

Permalink
Refs #22427: Fix build in Ubuntu24
Browse files Browse the repository at this point in the history
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
  • Loading branch information
cferreiragonz committed Jan 16, 2025
1 parent 49ec52f commit e89400a
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 @@ -229,7 +229,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 e89400a

Please sign in to comment.