Blame SOURCES/0018-abrt-checker-Fix-preprocessor-check.patch

4aa15d
From ae2144f1674f163517f0aa18b5f1b4784c143572 Mon Sep 17 00:00:00 2001
4aa15d
From: Ernestas Kulik <ekulik@redhat.com>
4aa15d
Date: Fri, 19 Jul 2019 15:24:17 +0200
4aa15d
Subject: [PATCH] abrt-checker: Fix preprocessor check
4aa15d
4aa15d
The macro defined is HAVE_SYSTEMD, not HAVE_SYSTEMD_JOURNAL.
4aa15d
4aa15d
Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
4aa15d
---
4aa15d
 src/abrt-checker.c | 4 ++--
4aa15d
 1 file changed, 2 insertions(+), 2 deletions(-)
4aa15d
4aa15d
diff --git a/src/abrt-checker.c b/src/abrt-checker.c
4aa15d
index 6f7fe13..2a0fac2 100644
4aa15d
--- a/src/abrt-checker.c
4aa15d
+++ b/src/abrt-checker.c
4aa15d
@@ -41,7 +41,7 @@
4aa15d
 #include <errno.h>
4aa15d
 #include <syslog.h>
4aa15d
 
4aa15d
-#if HAVE_SYSTEMD_JOURNAL
4aa15d
+#if HAVE_SYSTEMD
4aa15d
 #include <systemd/sd-journal.h>
4aa15d
 #endif
4aa15d
 
4aa15d
@@ -802,7 +802,7 @@ static void report_stacktrace(
4aa15d
         syslog(LOG_ERR, "%s\n%s", message, stacktrace);
4aa15d
     }
4aa15d
 
4aa15d
-#if HAVE_SYSTEMD_JOURNAL
4aa15d
+#if HAVE_SYSTEMD
4aa15d
     if (globalConfig.reportErrosTo & ED_JOURNALD)
4aa15d
     {
4aa15d
         VERBOSE_PRINT("Reporting stack trace to JournalD\n");
4aa15d
-- 
4aa15d
2.21.0
4aa15d