diff options
| author | Jan Beich <jbeich@FreeBSD.org> | 2025-01-27 22:06:48 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-27 23:06:48 +0100 |
| commit | d2773d7a4ecde7111af4ec71b51b1996ec1d96bf (patch) | |
| tree | 0082f941223f6e773c9e8ec7eb1f0cdfe8023996 | |
| parent | 5fd90548dc99d79dd2677e027a620c8ada9f4869 (diff) | |
deps: add libinotify-kqueue on BSDs after 8dd2cd41fb4c (#9197)
src/config/ConfigWatcher.cpp:2:10: fatal error: 'sys/inotify.h' file not found
2 | #include <sys/inotify.h>
| ^~~~~~~~~~~~~~~
| -rw-r--r-- | CMakeLists.txt | 6 | ||||
| -rw-r--r-- | meson.build | 1 | ||||
| -rw-r--r-- | src/meson.build | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3cfb8688..a34d677c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -197,6 +197,12 @@ if(NOT HAS_TIMERFD AND epoll_FOUND) target_link_libraries(Hyprland PkgConfig::epoll) endif() +check_include_file("sys/inotify.h" HAS_INOTIFY) +pkg_check_modules(inotify IMPORTED_TARGET libinotify) +if(NOT HAS_INOTIFY AND inotify_FOUND) + target_link_libraries(Hyprland PkgConfig::inotify) +endif() + if(LEGACY_RENDERER) message(STATUS "Using the legacy GLES2 renderer!") add_compile_definitions(LEGACY_RENDERER) diff --git a/meson.build b/meson.build index 6b50ff2d..ae6e3940 100644 --- a/meson.build +++ b/meson.build @@ -58,6 +58,7 @@ endif backtrace_dep = cpp_compiler.find_library('execinfo', required: false) epoll_dep = dependency('epoll-shim', required: false) # timerfd on BSDs +inotify_dep = dependency('libinotify', required: false) # inotify on BSDs re2 = dependency('re2', required: true) diff --git a/src/meson.build b/src/meson.build index 7054d8e4..3973dc4c 100644 --- a/src/meson.build +++ b/src/meson.build @@ -32,6 +32,7 @@ executable( xcb_xfixes_dep, backtrace_dep, epoll_dep, + inotify_dep, gio_dep, tracy, |
