Skip to content

Commit

Permalink
Fixed windows
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
  • Loading branch information
ahcorde committed Dec 17, 2024
1 parent b62a6e2 commit ec42c81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/detail/rmw_context_impl_s.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class rmw_context_impl_s::Data final
throw std::runtime_error("Error setting up zenoh session. ");
}

rmw_ret_t ret;
rmw_ret_t ret = RMW_RET_ERROR;

// Verify if the zenoh router is running if configured.
const std::optional<uint64_t> configured_connection_attempts =
Expand Down
7 changes: 3 additions & 4 deletions rmw_zenoh_cpp/src/zenohd/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@
#include <mutex>
#include <stdexcept>

#include <zenoh.hxx>
#include <zenoh/api/session.hxx>

#ifdef _WIN32
#include <windows.h>
#else
#include <signal.h>
#endif


#include <zenoh.hxx>
#include <zenoh/api/session.hxx>

#include "../detail/zenoh_config.hpp"

#include "rmw/error_handling.h"
Expand Down

0 comments on commit ec42c81

Please sign in to comment.