summary refs log tree commit diff
path: root/pkgs/os-specific/linux/multipath-tools/json-c-0.14.patch
diff options
context:
space:
mode:
authorMartin Milata <martin@martinmilata.cz>2020-06-18 14:56:20 +0200
committerMartin Milata <martin@martinmilata.cz>2020-07-02 18:30:23 +0200
commit542c8ff8938e92e6c55050058fa0691499453ced (patch)
tree6c7df7fad3a77bb2fca180ec8deae941e128c510 /pkgs/os-specific/linux/multipath-tools/json-c-0.14.patch
parent9d1b3a1555ff4a114ca05be19a621cbb2c752f47 (diff)
downloadnixpkgs-542c8ff8938e92e6c55050058fa0691499453ced.tar
nixpkgs-542c8ff8938e92e6c55050058fa0691499453ced.tar.gz
nixpkgs-542c8ff8938e92e6c55050058fa0691499453ced.tar.bz2
nixpkgs-542c8ff8938e92e6c55050058fa0691499453ced.tar.lz
nixpkgs-542c8ff8938e92e6c55050058fa0691499453ced.tar.xz
nixpkgs-542c8ff8938e92e6c55050058fa0691499453ced.tar.zst
nixpkgs-542c8ff8938e92e6c55050058fa0691499453ced.zip
multipath-tools: support json_c-0.14
Diffstat (limited to 'pkgs/os-specific/linux/multipath-tools/json-c-0.14.patch')
-rw-r--r--pkgs/os-specific/linux/multipath-tools/json-c-0.14.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/multipath-tools/json-c-0.14.patch b/pkgs/os-specific/linux/multipath-tools/json-c-0.14.patch
new file mode 100644
index 00000000000..d5fee424883
--- /dev/null
+++ b/pkgs/os-specific/linux/multipath-tools/json-c-0.14.patch
@@ -0,0 +1,21 @@
+diff --git a/libdmmp/libdmmp_private.h b/libdmmp/libdmmp_private.h
+index ac85b63f..b1a6ddea 100644
+--- a/libdmmp/libdmmp_private.h
++++ b/libdmmp/libdmmp_private.h
+@@ -30,6 +30,7 @@
+ #include <stdint.h>
+ #include <string.h>
+ #include <assert.h>
++#include <stdbool.h>
+ #include <json.h>
+ 
+ #include "libdmmp/libdmmp.h"
+@@ -82,7 +83,7 @@ static out_type func_name(struct dmmp_context *ctx, const char *var_name) { \
+ do { \
+ 	json_type j_type = json_type_null; \
+ 	json_object *j_obj_tmp = NULL; \
+-	if (json_object_object_get_ex(j_obj, key, &j_obj_tmp) != TRUE) { \
++	if (json_object_object_get_ex(j_obj, key, &j_obj_tmp) != true) { \
+ 		_error(ctx, "Invalid JSON output from multipathd IPC: " \
+ 		       "key '%s' not found", key); \
+ 		rc = DMMP_ERR_IPC_ERROR; \