diff options
author | Gabor Greif <ggreif@gmail.com> | 2007-09-19 09:29:58 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2007-09-19 09:29:58 +0000 |
commit | 2f276909c3e685bd763bebb647a7981f86f60e46 (patch) | |
tree | b4484105c6f609c3e6c5bf868a167e93ebdeb522 /bindings/ocaml/llvm | |
parent | cc756568f9bf18bc3261adb5dc561c76b029f067 (diff) | |
download | external_llvm-2f276909c3e685bd763bebb647a7981f86f60e46.zip external_llvm-2f276909c3e685bd763bebb647a7981f86f60e46.tar.gz external_llvm-2f276909c3e685bd763bebb647a7981f86f60e46.tar.bz2 |
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
Diffstat (limited to 'bindings/ocaml/llvm')
-rw-r--r-- | bindings/ocaml/llvm/llvm_ocaml.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c index ae07fb2..c297a5f 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 <stdio.h> +#ifdef HAVE_ALLOCA_H +#include <alloca.h> +#endif /*===-- Modules -----------------------------------------------------------===*/ |