From 34930facfe11ef6e322c276295ddf884d36de11c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Tue, 8 Nov 2011 17:09:37 +0000 Subject: [PATCH] gallivm: Include stddef.h before the LLVM C++ headers. Necessary with build against LLVM 2.6, with recent gcc, as LLVM headers depend on ptrdiff_t but don't properly include stddef.h --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 2 ++ src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index b685c087370..62825a29b99 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -25,6 +25,8 @@ * **************************************************************************/ +#include + #include #include #include diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp index 85fabc574b2..222241a140a 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp @@ -34,6 +34,8 @@ #define __STDC_CONSTANT_MACROS #endif +#include + #include #include #include -- 2.30.2