I added
#ifndef CAMLreturnT
#define CAMLreturnT(T, result) do{ \
T caml__temp_result = (result); \
caml_local_roots = caml__frame; \
return (caml__temp_result); \
}while(0)
#endif
(as seen in http://caml.inria.fr/mantis/view.php?id=4129) to curl-helper.c so I could compile it against OCaml 3.09.2.
I'm not sure it's the right fix, but it worked for me; My test programs and my "real"...
2008-12-19 14:52:21 UTC in Ocaml Curl Library