File: cryptokit-1.7-sks-custom_compare.patch

package info (click to toggle)
sks 1.1.6-14
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,296 kB
  • sloc: ml: 15,228; ansic: 1,069; sh: 358; makefile: 347
file content (16 lines) | stat: -rw-r--r-- 465 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/stubs-sha3.c b/src/stubs-sha3.c
index df8ac30..2c48222 100644
--- cryptokit-1.7/src/stubs-sha3.c
+++ cryptokit-1.7/src/stubs-sha3.c
@@ -20,6 +20,11 @@
 #include <caml/alloc.h>
 #include <caml/custom.h>
 
+// Patch is needed for ocaml < 3.12.1
+#ifndef  custom_compare_ext_default
+#define custom_compare_ext_default NULL
+#endif
+
 #define Context_val(v) (*((struct SHA3Context **) Data_custom_val(v)))
 
 static void caml_sha3_finalize(value ctx)