From 8c6bfd9623d370d1758002f653716c7f4926254e670cc60dd3dd977ee7bc7272 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Thu, 14 Oct 2021 19:41:06 +0000 Subject: [PATCH] hopefully fixed (again) u_fix-build-on-ppc64le.patch OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1065 --- u_fix-build-on-ppc64le.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/u_fix-build-on-ppc64le.patch b/u_fix-build-on-ppc64le.patch index 82aed40..2e0a4b6 100644 --- a/u_fix-build-on-ppc64le.patch +++ b/u_fix-build-on-ppc64le.patch @@ -1,3 +1,16 @@ +diff -u -r mesa-21.2.3.orig/include/CL/cl_platform.h mesa-21.2.3/include/CL/cl_platform.h +--- mesa-21.2.3.orig/include/CL/cl_platform.h 2021-10-14 12:26:03.866376943 +0200 ++++ mesa-21.2.3/include/CL/cl_platform.h 2021-10-14 20:37:44.557384820 +0200 +@@ -356,7 +356,9 @@ + /* Define basic vector types */ + #if defined( __VEC__ ) + #if !defined(__clang__) ++ #ifndef __cplusplus + #include /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */ ++ #endif + #endif + typedef __vector unsigned char __cl_uchar16; + typedef __vector signed char __cl_char16; diff -u -r mesa-21.2.3.orig/src/gallium/drivers/llvmpipe/lp_rast_tri.c mesa-21.2.3/src/gallium/drivers/llvmpipe/lp_rast_tri.c --- mesa-21.2.3.orig/src/gallium/drivers/llvmpipe/lp_rast_tri.c 2021-10-14 12:26:04.058380655 +0200 +++ mesa-21.2.3/src/gallium/drivers/llvmpipe/lp_rast_tri.c 2021-10-14 20:38:55.478734888 +0200