Skip to content

Commit

Permalink
iox-eclipse-iceoryx#2330 Refactor Systemd include with conditional co…
Browse files Browse the repository at this point in the history
…mpilation

Moved the Systemd include directive under a conditional compilation block using the USE_SYSTEMD flag. This change ensures that the dependency on Systemd is only included when necessary, reducing potential compilation issues and improving portability.
  • Loading branch information
khromenokroman committed Aug 24, 2024
1 parent bc13c4b commit 4aee645
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion iceoryx_posh/include/iceoryx_posh/internal/roudi/roudi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@


#include <cstdint>
#include <systemd/sd-daemon.h>
#include <thread>

#ifdef USE_SYSTEMD
#include <systemd/sd-daemon.h>
#endif

namespace iox
{
namespace roudi
Expand Down

0 comments on commit 4aee645

Please sign in to comment.