[mingw-pthreads: 8/23] add mingw32-pthreads-2.8.0-w32.patch
Kalev Lember
kalev at fedoraproject.org
Tue Mar 6 21:32:26 UTC 2012
commit c3f038112a38971eb5c388e5f4acdd76f56870b6
Author: Levente Farkas <lfarkas at fedoraproject.org>
Date: Sun Nov 15 11:24:33 2009 +0000
add mingw32-pthreads-2.8.0-w32.patch
mingw32-pthreads-2.8.0-w32.patch | 11 +++++++++++
mingw32-pthreads.spec | 7 ++++++-
2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/mingw32-pthreads-2.8.0-w32.patch b/mingw32-pthreads-2.8.0-w32.patch
new file mode 100644
index 0000000..3fc8b52
--- /dev/null
+++ b/mingw32-pthreads-2.8.0-w32.patch
@@ -0,0 +1,11 @@
+--- ./sched.h 2009-05-18 15:15:33.893366500 -0700
++++ ./sched.h 2009-01-29 19:17:29.010338200 -0800
+@@ -119,6 +119,8 @@
+ # include <sys/types.h>
+ /* Required by Unix 98 */
+ # include <time.h>
++#else
++typedef int pid_t;
+ #endif /* PTW32_LEVEL >= PTW32_LEVEL_MAX */
+ #else
+ typedef int pid_t;
diff --git a/mingw32-pthreads.spec b/mingw32-pthreads.spec
index 5a20a2d..c4abf94 100644
--- a/mingw32-pthreads.spec
+++ b/mingw32-pthreads.spec
@@ -9,7 +9,7 @@
Name: mingw32-pthreads
Version: 2.8.0
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: MinGW pthread library
%define crazy_version %(echo %{version}|tr . -)
@@ -25,6 +25,7 @@ BuildArch: noarch
Patch0: mingw32-pthreads-2.8.0-use-wine-for-tests.patch
Patch1: mingw32-pthreads-2.8.0-no-failing-tests.patch
Patch2: mingw32-pthreads-flags.patch
+Patch3: mingw32-pthreads-2.8.0-w32.patch
BuildRequires: mingw32-filesystem >= 49
BuildRequires: mingw32-gcc
@@ -57,6 +58,7 @@ high-quality solution to this problem.
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
@@ -113,6 +115,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Sun Nov 15 2009 Levente Farkas <lfarkas at lfarkas.org> - 2.8.0-10
+- added mingw32-pthreads-2.8.0-w32.patch
+
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.8.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
More information about the scm-commits
mailing list