X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=ocaml%2Fguestfs_c.c;h=43a85b800dbdc85b3f6068e9280cfe893e1de4aa;hp=86fa29390d631426e4f233ef207af71c13dd14e3;hb=bf2b08560f649c22152e4138531ad0b46b4ad1b3;hpb=ab0397017cc26833c09946cca19d86b907822a94 diff --git a/ocaml/guestfs_c.c b/ocaml/guestfs_c.c index 86fa293..43a85b8 100644 --- a/ocaml/guestfs_c.c +++ b/ocaml/guestfs_c.c @@ -32,6 +32,15 @@ #include "guestfs_c.h" +/* This macro was added in OCaml 3.10. Backport for earlier versions. */ +#ifndef CAMLreturnT +#define CAMLreturnT(type, result) do{ \ + type caml__temp_result = (result); \ + caml_local_roots = caml__frame; \ + return (caml__temp_result); \ +}while(0) +#endif + /* Allocate handles and deal with finalization. */ static void guestfs_finalize (value gv)