mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
ocaml: Use Caml_state_opt in preference to caml_state
Link: https://discuss.ocaml.org/t/test-caml-state-and-conditionally-caml-acquire-runtime-system-good-or-bad/12489/7 Thanks: Guillaume Munch-Maccagnoni
This commit is contained in:
@@ -412,7 +412,7 @@ event_callback_wrapper (guestfs_h *g,
|
||||
* https://discuss.ocaml.org/t/test-caml-state-and-conditionally-caml-acquire-runtime-system-good-or-bad/12489
|
||||
*/
|
||||
#if OCAML_VERSION_MAJOR >= 5
|
||||
bool acquired = caml_state != NULL;
|
||||
bool acquired = Caml_state_opt != NULL;
|
||||
#else
|
||||
const bool acquired = false;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user