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