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

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