Submitted By: Rahul Chandra Date: 2023-09-21 Initial Package Version: 23.1.8 Upstream Status: Merged Origin: Backport of https://gitlab.freedesktop.org/mesa/mesa/-/commit/9ba416cdc67073cdda9a73fe9d37304b82bdd526#ca76ad420eda86d103bd0d62a66623a51e0e3d4b Description: Fix missing header file build error when building mesa with llvm-17 diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c index 24d082398e9..9e0d6a5f643 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c @@ -42,14 +42,14 @@ #include #include -#include -#if LLVM_VERSION_MAJOR >= 7 -#include -#endif #include #if GALLIVM_USE_NEW_PASS == 1 #include #elif GALLIVM_HAVE_CORO == 1 +#include +#if LLVM_VERSION_MAJOR >= 7 +#include +#endif #if LLVM_VERSION_MAJOR <= 8 && (DETECT_ARCH_AARCH64 || DETECT_ARCH_ARM || DETECT_ARCH_S390 || DETECT_ARCH_MIPS64) #include #endif