From dab0035fa407f8594de96d2e193a5e934b97eb97 Mon Sep 17 00:00:00 2001 From: Will Date: Sat, 2 Dec 2023 13:07:45 -0500 Subject: [PATCH] watcher/linux: fix kernel version check for android --- devel/include/detail/wtr/watcher/adapter/linux/watch.hpp | 2 +- include/wtr/watcher.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devel/include/detail/wtr/watcher/adapter/linux/watch.hpp b/devel/include/detail/wtr/watcher/adapter/linux/watch.hpp index 0ecddbb4..6c40e96d 100644 --- a/devel/include/detail/wtr/watcher/adapter/linux/watch.hpp +++ b/devel/include/detail/wtr/watcher/adapter/linux/watch.hpp @@ -7,7 +7,7 @@ #include #include -#if (KERNEL_VERSION(2, 7, 0) > LINUX_VERSION_CODE) || __ANDROID_API__ +#if KERNEL_VERSION(2, 7, 0) > LINUX_VERSION_CODE #error "Define 'WATER_WATCHER_USE_WARTHOG' on kernel versions < 2.7.0" #endif diff --git a/include/wtr/watcher.hpp b/include/wtr/watcher.hpp index b30b1b2c..2f0f5005 100644 --- a/include/wtr/watcher.hpp +++ b/include/wtr/watcher.hpp @@ -1690,7 +1690,7 @@ inline auto do_ev_recv = [](auto const& cb, sysres& sr) -> result #include #include -#if (KERNEL_VERSION(2, 7, 0) > LINUX_VERSION_CODE) || __ANDROID_API__ +#if KERNEL_VERSION(2, 7, 0) > LINUX_VERSION_CODE #error "Define 'WATER_WATCHER_USE_WARTHOG' on kernel versions < 2.7.0" #endif