diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ff8e19..3d7327b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,11 +33,11 @@ message(STATUS "Checking deps...") find_package(Threads REQUIRED) find_package(PkgConfig REQUIRED) find_package(OpenGL REQUIRED) -pkg_check_modules(deps REQUIRED IMPORTED_TARGET wayland-client wayland-protocols wayland-egl hyprlang>=0.4.0 egl opengl xkbcommon cairo pangocairo pam libdrm gbm) +pkg_check_modules(deps REQUIRED IMPORTED_TARGET wayland-client wayland-protocols wayland-egl hyprlang>=0.4.0 egl opengl xkbcommon cairo pangocairo libdrm gbm) file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp") add_executable(hyprlock ${SRCFILES}) -target_link_libraries(hyprlock PRIVATE rt Threads::Threads PkgConfig::deps OpenGL::EGL OpenGL::GL) +target_link_libraries(hyprlock PRIVATE pam rt Threads::Threads PkgConfig::deps OpenGL::EGL OpenGL::GL) # protocols find_program(WaylandScanner NAMES wayland-scanner) diff --git a/src/core/Password.cpp b/src/core/Password.cpp index a777fdf..cdc7b10 100644 --- a/src/core/Password.cpp +++ b/src/core/Password.cpp @@ -3,8 +3,11 @@ #include #include +#if __has_include() #include +#endif +#include #include struct pam_response* reply; diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index 55bda04..8740f09 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include diff --git a/src/renderer/DMAFrame.cpp b/src/renderer/DMAFrame.cpp index e9b287d..9969870 100644 --- a/src/renderer/DMAFrame.cpp +++ b/src/renderer/DMAFrame.cpp @@ -9,6 +9,7 @@ #include #include #include +#include static PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glEGLImageTargetTexture2DOES = nullptr; static PFNEGLQUERYDMABUFMODIFIERSEXTPROC eglQueryDmaBufModifiersEXT = nullptr; diff --git a/src/renderer/widgets/IWidget.cpp b/src/renderer/widgets/IWidget.cpp index bbfdd80..5aa21e1 100644 --- a/src/renderer/widgets/IWidget.cpp +++ b/src/renderer/widgets/IWidget.cpp @@ -2,6 +2,7 @@ #include "../../helpers/Log.hpp" #include "../../helpers/VarList.hpp" #include +#include Vector2D IWidget::posFromHVAlign(const Vector2D& viewport, const Vector2D& size, const Vector2D& offset, const std::string& halign, const std::string& valign) { Vector2D pos = offset;