From f71930193dcad0e34ef49a650eb5b062bc572213 Mon Sep 17 00:00:00 2001 From: Rhys Mainwaring Date: Mon, 10 Jul 2023 23:41:03 +0100 Subject: [PATCH] Disable FileWatcherHandler for macOS Signed-off-by: Rhys Mainwaring --- cpp_utils/include/cpp_utils/event/FileWatcherHandler.hpp | 4 +++- cpp_utils/src/cpp/event/FileWatcherHandler.cpp | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cpp_utils/include/cpp_utils/event/FileWatcherHandler.hpp b/cpp_utils/include/cpp_utils/event/FileWatcherHandler.hpp index cafa6501..5b9ebfde 100644 --- a/cpp_utils/include/cpp_utils/event/FileWatcherHandler.hpp +++ b/cpp_utils/include/cpp_utils/event/FileWatcherHandler.hpp @@ -18,6 +18,8 @@ #pragma once +#if !defined(__APPLE__) + #include #include @@ -118,4 +120,4 @@ class FileWatcherHandler : public EventHandler } /* namespace utils */ } /* namespace eprosima */ - +#endif /* !defined(__APPLE__) */ diff --git a/cpp_utils/src/cpp/event/FileWatcherHandler.cpp b/cpp_utils/src/cpp/event/FileWatcherHandler.cpp index 5d079b0f..7866614e 100644 --- a/cpp_utils/src/cpp/event/FileWatcherHandler.cpp +++ b/cpp_utils/src/cpp/event/FileWatcherHandler.cpp @@ -17,6 +17,8 @@ * */ +#if !defined(__APPLE__) + #include #include #include @@ -112,3 +114,5 @@ void FileWatcherHandler::callback_unset_nts_() noexcept } /* namespace event */ } /* namespace utils */ } /* namespace eprosima */ + +#endif /* !defined(__APPLE__) */