Blame SOURCES/0002-caml_named_value-returns-const-value-pointer-in-OCam.patch

498672
From 524b0c748a3a2d47b4c76e3aa546b9d4af144e6c Mon Sep 17 00:00:00 2001
498672
From: "Richard W.M. Jones" <rjones@redhat.com>
498672
Date: Sat, 7 Dec 2019 11:08:54 +0000
498672
Subject: [PATCH] caml_named_value returns const value pointer in OCaml 4.09+
498672
498672
(cherry picked from ocaml-augeas
498672
commit 1cf5aef99b26a46529ca797547c0b49627fffe78)
498672
---
498672
 common/mlaugeas/augeas-c.c | 4 ++--
498672
 1 file changed, 2 insertions(+), 2 deletions(-)
498672
498672
diff --git a/common/mlaugeas/augeas-c.c b/common/mlaugeas/augeas-c.c
498672
index 3e0ba67ba..3b1dc2551 100644
498672
--- a/common/mlaugeas/augeas-c.c
498672
+++ b/common/mlaugeas/augeas-c.c
498672
@@ -77,7 +77,7 @@ static const int error_map_len = sizeof error_map / sizeof error_map[0];
498672
 static void
498672
 raise_error (augeas_t t, const char *msg)
498672
 {
498672
-  value *exn = caml_named_value ("Augeas.Error");
498672
+  const value *exn = caml_named_value ("Augeas.Error");
498672
   value args[4];
498672
   const int code = aug_error (t);
498672
   const char *aug_err_minor;
498672
@@ -113,7 +113,7 @@ raise_error (augeas_t t, const char *msg)
498672
 static void
498672
 raise_init_error (const char *msg)
498672
 {
498672
-  value *exn = caml_named_value ("Augeas.Error");
498672
+  const value *exn = caml_named_value ("Augeas.Error");
498672
   value args[4];
498672
 
498672
   args[0] = caml_alloc (1, 0);
498672
-- 
498672
2.18.4
498672