From db48e1d4545fd46fdc1e834607730668de1a036c Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 01 2017 03:25:40 +0000 Subject: import brltty-4.5-15.el7 --- diff --git a/SOURCES/brltty-4.5-ocaml-4.04-fix.patch b/SOURCES/brltty-4.5-ocaml-4.04-fix.patch new file mode 100644 index 0000000..ed897e8 --- /dev/null +++ b/SOURCES/brltty-4.5-ocaml-4.04-fix.patch @@ -0,0 +1,35 @@ +diff --git a/Bindings/OCaml/brlapi_stubs.c b/Bindings/OCaml/brlapi_stubs.c +index 1e66f9e..aabdc14 100644 +--- a/Bindings/OCaml/brlapi_stubs.c ++++ b/Bindings/OCaml/brlapi_stubs.c +@@ -145,12 +145,14 @@ CAMLprim value brlapiml_errorCode_of_error(value camlError) + static void raise_brlapi_error(void) + { + static value *exception = NULL; ++ CAMLparam0(); + CAMLlocal1(res); + if (exception==NULL) exception = caml_named_value("Brlapi_error"); + res = caml_alloc(2,0); + Store_field(res, 0, *exception); + Store_field(res, 1, constrCamlError(&brlapi_error)); + caml_raise(res); ++ CAMLreturn0; + } + + /* Function : raise_brlapi_exception */ +@@ -159,6 +161,7 @@ static void BRLAPI_STDCALL raise_brlapi_exception(int err, brlapi_packetType_t t + { + static value *exception = NULL; + int i; ++ CAMLparam0(); + CAMLlocal2(str, res); + str = caml_alloc_string(size); + for (i=0; i