1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-18 13:55:11 -05:00

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(CairoFC REQUIRED)
find_package(LibUV 1.8.0 REQUIRED)
find_package(LibUV 1.3.0 REQUIRED)
if (ENABLE_ALSA)
find_package(ALSA REQUIRED)

View file

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

View file

@ -4,6 +4,10 @@
#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
/**