forked from mingw/mingw32-headers
This commit is contained in:
parent
a40c5dca02
commit
322dad41cb
18
mingw-w64-headers-sigset_t.patch
Normal file
18
mingw-w64-headers-sigset_t.patch
Normal 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_ */
|
@ -12,6 +12,7 @@ URL: http://www.mingw.org/
|
|||||||
Source0: mingw-w64-headers-%{version}.tar.bz2
|
Source0: mingw-w64-headers-%{version}.tar.bz2
|
||||||
Source1000: %{name}-rpmlintrc
|
Source1000: %{name}-rpmlintrc
|
||||||
Patch0: mingw-w64-headers-1.0b.20100730-winsock.patch
|
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)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
@ -27,6 +28,7 @@ MinGW Win64 headers.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n mingw-w64-headers-%{version}
|
%setup -q -n mingw-w64-headers-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./configure --host=%{_mingw32_target} \
|
./configure --host=%{_mingw32_target} \
|
||||||
|
Loading…
Reference in New Issue
Block a user