diff --git a/mingw-w64-headers-1.0b.20100818-namelessunion.patch b/mingw-w64-headers-1.0b.20100818-namelessunion.patch new file mode 100644 index 0000000..ae3059e --- /dev/null +++ b/mingw-w64-headers-1.0b.20100818-namelessunion.patch @@ -0,0 +1,11 @@ +--- include/winnt.h (revision 3516) ++++ include/winnt.h (revision 3517) +@@ -3121,7 +3121,7 @@ + __MINGW_EXTENSION union { + PVOID FiberData; + DWORD Version; +- } DUMMYUNIONNAME; ++ }; + PVOID ArbitraryUserPointer; + struct _NT_TIB *Self; + } NT_TIB; diff --git a/mingw32-headers.spec b/mingw32-headers.spec index 2ef0739..043cdfb 100644 --- a/mingw32-headers.spec +++ b/mingw32-headers.spec @@ -12,6 +12,7 @@ URL: http://www.mingw.org/ Source0: mingw-w64-headers-%{version}.tar.bz2 Source1000: %{name}-rpmlintrc Patch0: mingw-w64-headers-1.0b.20100818-uow.patch +Patch0: mingw-w64-headers-1.0b.20100818-namelessunion.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -27,6 +28,7 @@ MinGW Win64 headers. %prep %setup -q -n mingw-w64-headers-%{version} %patch0 -p1 +%patch1 -p0 %build ./configure --host=%{_mingw32_target} \