diff --git a/fastddsspy_tool/src/cpp/main.cpp b/fastddsspy_tool/src/cpp/main.cpp index e2f11530..6b562867 100644 --- a/fastddsspy_tool/src/cpp/main.cpp +++ b/fastddsspy_tool/src/cpp/main.cpp @@ -174,9 +174,11 @@ int main( } }; +#if !defined(__APPLE__) // Creating FileWatcher event handler std::unique_ptr file_watcher_handler = std::make_unique(filewatcher_callback, file_path); +#endif // !defined(__APPLE__) ///// // Periodic Handler for reload configuration in periodic time @@ -233,10 +235,12 @@ int main( periodic_handler.reset(); } +#if !defined(__APPLE__) if (file_watcher_handler) { file_watcher_handler.reset(); } +#endif // !defined(__APPLE__) } catch (const eprosima::utils::ConfigurationException& e) {