libreport/0011-ureport-include-json.h-accordingly-to-json-c-CFLAGS.patch
Jakub Filak ef61d27e19 Fix a bug in logging, add "Repeat" button
Signed-off-by: Jakub Filak <jfilak@redhat.com>
2014-08-19 15:25:33 +02:00

46 lines
1.3 KiB
Diff

From cc36c5c2b109fa7ac864400e695c88808b19a5ed Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Fri, 25 Jul 2014 12:39:28 +0200
Subject: [PATCH 11/20] ureport: include json.h accordingly to json-c CFLAGS
commit 1cef1ddc28f327534cfdb433d1f2e10d01b10f44
Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
src/plugins/Makefile.am | 2 ++
src/plugins/ureport.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
index 2d95f07..7e0e753 100644
--- a/src/plugins/Makefile.am
+++ b/src/plugins/Makefile.am
@@ -260,9 +260,11 @@ reporter_ureport_CPPFLAGS = \
-I$(srcdir)/../lib \
$(GLIB_CFLAGS) \
$(LIBREPORT_CFLAGS) \
+ $(JSON_C_CFLAGS) \
-DPLUGINS_CONF_DIR=\"$(REPORT_PLUGINS_CONF_DIR)\" \
-D_GNU_SOURCE
reporter_ureport_LDADD = \
+ $(JSON_C_LIBS) \
../lib/libreport.la \
../lib/libreport-web.la
endif
diff --git a/src/plugins/ureport.c b/src/plugins/ureport.c
index e6237cc..063a1e7 100644
--- a/src/plugins/ureport.c
+++ b/src/plugins/ureport.c
@@ -17,7 +17,7 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <json/json.h>
+#include <json.h>
#include "internal_libreport.h"
#include "ureport.h"
#include "libreport_curl.h"
--
2.0.4