Source: multipath-tools
Version: 0.8.4-2
Severity: serious
tags: patch
 
hello, attached a patch that makes it build with newer json-c

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

--- multipath-tools-0.8.4.orig/libdmmp/libdmmp_private.h
+++ multipath-tools-0.8.4/libdmmp/libdmmp_private.h
@@ -32,6 +32,14 @@
 #include <assert.h>
 #include <json.h>

+// not exported anymore by new json-c
+#ifndef TRUE
+#define TRUE 1
+#endif
+#ifndef FALSE
+#define FALSE 0
+#endif
+
 #include "libdmmp/libdmmp.h"

 #ifdef __cplusplus


thanks

G.

Reply via email to