From 4742f9b00b804dd01eb9955dd386a2373cd8eb36 Mon Sep 17 00:00:00 2001 From: Armin K Date: Thu, 02 May 2013 10:55:04 +0000 Subject: gallivm: Fix build with LLVM 3.3 Reviewed-by: Tom Stellard --- Index: src/gallium/auxiliary/gallivm/lp_bld_misc.cpp =================================================================== --- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp.orig +++ src/gallium/auxiliary/gallivm/lp_bld_misc.cpp @@ -60,6 +60,12 @@ #include #endif /* HAVE_LLVM < 0x0300 */ +#if HAVE_LLVM >= 0x0303 +#include +#include +#include +#endif + #include "pipe/p_config.h" #include "util/u_debug.h" #include "util/u_cpu_detect.h" Index: src/gallium/auxiliary/gallivm/lp_bld_debug.cpp =================================================================== --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp.orig +++ src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -55,6 +55,10 @@ #include #endif /* HAVE_LLVM >= 0x0301 */ +#if HAVE_LLVM >= 0x0303 +#include +#endif + #include "util/u_math.h" #include "util/u_debug.h"