diff --git a/src/cpp/rtps/RTPSDomainImpl.hpp b/src/cpp/rtps/RTPSDomainImpl.hpp index 37ef9cbfbc..ca48b880ca 100644 --- a/src/cpp/rtps/RTPSDomainImpl.hpp +++ b/src/cpp/rtps/RTPSDomainImpl.hpp @@ -31,11 +31,14 @@ #include #include -#include #include #include #include +#if HAVE_SECURITY +#include +#endif // HAVE_SECURITY + #include namespace eprosima { @@ -286,8 +289,9 @@ class RTPSDomainImpl std::shared_ptr boost_singleton_handler_ { eprosima::detail:: BoostAtExitRegistry:: get_instance() }; - +#if HAVE_SECURITY std::shared_ptr openssl_singleton_handler_{ security::OpenSSLInit::get_instance() }; +#endif // HAVE_SECURITY std::mutex m_mutex;