%define glproto_ver 1.4.14
%define presentproto_ver 1.0
-%ifarch x32
-# X32 does not support ms_abi attribute
-%undefine with_nine
-%endif
+#ifarch x32
+## X32 does not support ms_abi attribute
+#undefine with_nine
+#endif
%if %{without gallium}
%undefine with_gallium_intel
Source0: ftp://ftp.freedesktop.org/pub/mesa/%{version}/mesa-%{version}.tar.xz
# Source0-md5: bf9118bf0fbf360715cfe60baf7a1db5
Patch0: missing-type.patch
+Patch1: x32.patch
URL: http://www.mesa3d.org/
BuildRequires: autoconf >= 2.60
BuildRequires: automake
%prep
%setup -q -n mesa-%{version}
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
--- /dev/null
+--- mesa-11.0.3/include/D3D9/d3d9types.h~ 2015-10-02 10:45:51.000000000 +0200
++++ mesa-11.0.3/include/D3D9/d3d9types.h 2015-10-11 23:43:57.442310720 +0200
+@@ -178,7 +178,7 @@
+ #undef WINAPI
+ #endif /* WINAPI*/
+
+-#if defined(__x86_64__) || defined(_M_X64)
++#if (defined(__x86_64__) || defined(_M_X64)) && !defined(__ILP32__)
+ #define WINAPI __attribute__((ms_abi))
+ #else /* x86_64 */
+ #define WINAPI __attribute__((__stdcall__))