Use libuv >= 1.3.0

This commit is contained in:
patrick96 2021-09-13 20:19:00 +02:00 committed by Patrick Ziegler
parent 386eb57ba7
commit 85d308cec8
3 changed files with 7 additions and 3 deletions

View File

@ -48,7 +48,7 @@ endif()
find_package(Threads REQUIRED) find_package(Threads REQUIRED)
find_package(CairoFC REQUIRED) find_package(CairoFC REQUIRED)
find_package(LibUV 1.8.0 REQUIRED) find_package(LibUV 1.3.0 REQUIRED)
if (ENABLE_ALSA) if (ENABLE_ALSA)
find_package(ALSA REQUIRED) find_package(ALSA REQUIRED)

View File

@ -253,8 +253,8 @@ void controller::read_events(bool confwatch) {
if (confwatch) { if (confwatch) {
eloop->fs_event_handle( eloop->fs_event_handle(
m_conf.filepath(), [this](const char* path, uv_fs_event events) { confwatch_handler(path, events); }, m_conf.filepath(), [this](const char* path, uv_fs_event events) { confwatch_handler(path, events); },
[this](int status) { [this](int err) {
m_log.err("libuv error while watching config file for changes: %s", uv_strerror(status)); m_log.err("libuv error while watching config file for changes: %s", uv_strerror(err));
}); });
} }

View File

@ -4,6 +4,10 @@
#include "errors.hpp" #include "errors.hpp"
#if !(UV_VERSION_MAJOR == 1 && UV_VERSION_MINOR >= 3)
#error "Polybar requires libuv 1.x and at least version 1.3"
#endif
POLYBAR_NS POLYBAR_NS
/** /**