Source: libu2f-server
Version: 1.1.10-1
Severity: serious
tags: patch

Hello, this is the trivial patch that makes the package build with newer jsonc.


Description: Patch to make it build with newer json-c deprecated TRUE/FALSE 
defines

Author: Gianfranco Costamagna <locutusofb...@debian.org>
Last-Update: 2020-07-31

Index: libu2f-server-1.1.0/u2f-server/core.c
===================================================================
--- libu2f-server-1.1.0.orig/u2f-server/core.c
+++ libu2f-server-1.1.0/u2f-server/core.c
@@ -37,6 +37,14 @@
 #include "b64/cdecode.h"
 #include "sha256.h"

+// not exported anymore by new json-c
+#ifndef TRUE
+#define TRUE 1
+#endif
+#ifndef FALSE
+#define FALSE 0
+#endif
+
 #ifdef HAVE_JSON_OBJECT_OBJECT_GET_EX
 #define u2fs_json_object_object_get(obj, key, value) 
json_object_object_get_ex(obj, key, &value)
 #else


G.

Reply via email to