1
0
Fridrich Strba 2010-08-11 20:56:44 +00:00 committed by Git OBS Bridge
parent a40c5dca02
commit 322dad41cb
2 changed files with 20 additions and 0 deletions

View File

@ -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_ */

View File

@ -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} \