Skip to content

Commit e89400a

Browse files
committed
Refs #22427: Fix build in Ubuntu24
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
1 parent 49ec52f commit e89400a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/fds/CliDiscoveryManager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ std::string CliDiscoveryManager::exec_command(
229229
{
230230
std::array<char, 128> buffer;
231231
std::string result;
232-
std::unique_ptr<FILE, decltype(& pclose)> pipe(popen(command.c_str(), "r"), pclose);
232+
std::unique_ptr<FILE, int (*)(
233+
FILE*)> pipe(popen(command.c_str(), "r"), pclose);
233234
if (!pipe)
234235
{
235236
EPROSIMA_LOG_ERROR(CLI, "Error processing command:" << command);

0 commit comments

Comments
 (0)