Skip to content

Commit

Permalink
watcher/linux: fix kernel version check for android
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Dec 2, 2023
1 parent 1e3c6ad commit dab0035
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion devel/include/detail/wtr/watcher/adapter/linux/watch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <linux/version.h>
#include <unistd.h>

#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

Expand Down
2 changes: 1 addition & 1 deletion include/wtr/watcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ inline auto do_ev_recv = [](auto const& cb, sysres& sr) -> result
#include <linux/version.h>
#include <unistd.h>

#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

Expand Down

0 comments on commit dab0035

Please sign in to comment.