diff --git a/mingw-w64-headers-sigset_t.patch b/mingw-w64-headers-sigset_t.patch new file mode 100644 index 0000000..5ee9213 --- /dev/null +++ b/mingw-w64-headers-sigset_t.patch @@ -0,0 +1,18 @@ +--- include/sys/types.h ++++ include/sys/types.h +@@ -117,9 +117,13 @@ + + #ifndef _SIGSET_T_ + #define _SIGSET_T_ +-typedef int _sigset_t; ++#ifdef _WIN64 ++__MINGW_EXTENSION typedef unsigned long long _sigset_t; ++#else ++typedef unsigned long _sigset_t; ++#endif + +-#ifndef _NO_OLDNAMES ++#ifndef _POSIX + typedef _sigset_t sigset_t; + #endif + #endif /* Not _SIGSET_T_ */ diff --git a/mingw32-headers.spec b/mingw32-headers.spec index 8c7e490..cc693ed 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.20100730-winsock.patch +Patch1: mingw-w64-headers-sigset_t.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} \