pentoo-overlay/app-crypt/hashkill/files/0001-fix-json-c-detect.patch

39 lines
1.1 KiB
Diff

From b075cd4bebe26754b2b5e6996c1f40c48e27cbdb Mon Sep 17 00:00:00 2001
From: Yury Martynov <email@linxon.ru>
Date: Fri, 8 Nov 2019 13:47:53 +0300
Subject: [PATCH] fix json-c detect
---
json.m4 | 2 +-
src/sessions.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/json.m4 b/json.m4
index c6d57ad..aca2c0f 100644
--- a/json.m4
+++ b/json.m4
@@ -64,7 +64,7 @@ fi
AC_LANG_SAVE
AC_LANG_C
AC_CHECK_LIB(json-c, json_tokener_parse, [jsonlib_cv_libjson=yes], [jsonlib_cv_libjson=no])
- AC_CHECK_HEADER(json/json.h, [jsonlib_cv_jsonlib_h=yes], [jsonlib_cv_jsonlib_h=no])
+ AC_CHECK_HEADER(json-c/json.h, [jsonlib_cv_jsonlib_h=yes], [jsonlib_cv_jsonlib_h=no])
AC_LANG_RESTORE
if test "$jsonlib_cv_libjson" = "yes" -a "$jsonlib_cv_jsonlib_h" = "yes" -a "$withval" != "no"
then
diff --git a/src/sessions.c b/src/sessions.c
index 63dafe9..e4784de 100644
--- a/src/sessions.c
+++ b/src/sessions.c
@@ -44,7 +44,7 @@
#include "sessions.h"
#ifdef HAVE_JSON_JSON_H
-#include <json/json.h>
+#include <json-c/json.h>
#endif
--
2.23.0