From 9dbf8ed140666d7e26a586a91f3c5c16339151aa Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Wed, 19 Sep 2007 09:29:58 +0000 Subject: include alloca.h if available. this helps Solaris, but intnat and uintnat types are still undefined, causing errors git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42129 91177308-0d34-0410-b5e6-96231b3b80d8 --- bindings/ocaml/llvm/llvm_ocaml.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bindings') diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c index ae07fb20fd..c297a5f3e6 100644 --- a/bindings/ocaml/llvm/llvm_ocaml.c +++ b/bindings/ocaml/llvm/llvm_ocaml.c @@ -19,7 +19,11 @@ #include "caml/alloc.h" #include "caml/mlvalues.h" #include "caml/memory.h" -#include "stdio.h" +#include "llvm/Config/config.h" +#include +#ifdef HAVE_ALLOCA_H +#include +#endif /*===-- Modules -----------------------------------------------------------===*/ -- cgit v1.2.3