diff --git a/cmake/ConkyPlatformChecks.cmake b/cmake/ConkyPlatformChecks.cmake index 510b5156..609c8fd8 100644 --- a/cmake/ConkyPlatformChecks.cmake +++ b/cmake/ConkyPlatformChecks.cmake @@ -464,7 +464,7 @@ if(BUILD_IMLIB2) endif(BUILD_IMLIB2) if(BUILD_JOURNAL) - pkg_search_module(SYSTEMD REQUIRED libsystemd libsystemd-journal) + pkg_search_module(SYSTEMD REQUIRED libsystemd>=205 libsystemd-journal>=205) set(conky_libs ${conky_libs} ${SYSTEMD_LIB} ${SYSTEMD_LDFLAGS}) set(conky_includes ${conky_includes} ${SYSTEMD_INCLUDE_DIRS}) endif(BUILD_JOURNAL) diff --git a/src/journal.cc b/src/journal.cc index 5addd314..210a7650 100644 --- a/src/journal.cc +++ b/src/journal.cc @@ -40,10 +40,6 @@ #include "text_object.h" #define MAX_JOURNAL_LINES 200 -#ifndef SD_JOURNAL_SYSTEM -// SD_JOURNAL_SYSTEM added and SD_JOURNAL_SYSTEM_ONLY deprecated in systemd-205 -#define SD_JOURNAL_SYSTEM SD_JOURNAL_SYSTEM_ONLY -#endif /* SD_JOURNAL_SYSTEM */ class journal { public: