commit cf154bb78fa984382917811b04fdc155ffddaf37
Author: Jakub Bogusz <qbo...@pld-linux.org>
Date:   Thu Dec 20 18:13:47 2018 +0100

    - added sched patch (fix include for pid_t in sched.h); release 4

 crossmingw32-pthreads-w32-sched.patch | 13 +++++++++++++
 crossmingw32-pthreads-w32.spec        |  4 +++-
 2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/crossmingw32-pthreads-w32.spec b/crossmingw32-pthreads-w32.spec
index 0b0c2c2..c0a83d5 100644
--- a/crossmingw32-pthreads-w32.spec
+++ b/crossmingw32-pthreads-w32.spec
@@ -3,12 +3,13 @@ Summary(pl.UTF-8):    Implementacja komponentu POSIX Threads 
dla Win32 - wersja skr
 Name:          crossmingw32-pthreads-w32
 Version:       2.9.1
 %define        dver    %(echo %{version} | tr . -)
-Release:       3
+Release:       4
 License:       LGPL v2.1
 Group:         Development/Libraries
 Source0:       
ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-%{dver}-release.tar.gz
 # Source0-md5: 36ba827d6aa0fa9f9ae740a35626e2e3
 Patch0:                %{name}-timespec.patch
+Patch1:                %{name}-sched.patch
 URL:           http://www.sourceware.org/pthreads-win32/
 BuildRequires: crossmingw32-gcc
 BuildRequires: sed >= 4.0
@@ -84,6 +85,7 @@ POSIX Threads - biblioteka DLL dla Windows.
 %prep
 %setup -q -n pthreads-w32-%{dver}-release
 %patch0 -p1
+%patch1 -p1
 
 mkdir lib
 
diff --git a/crossmingw32-pthreads-w32-sched.patch 
b/crossmingw32-pthreads-w32-sched.patch
new file mode 100644
index 0000000..376c0ff
--- /dev/null
+++ b/crossmingw32-pthreads-w32-sched.patch
@@ -0,0 +1,13 @@
+--- pthreads-w32-2-9-1-release/sched.h.orig    2011-06-29 07:10:02.000000000 
+0200
++++ pthreads-w32-2-9-1-release/sched.h 2018-12-20 18:00:33.452320552 +0100
+@@ -117,9 +117,9 @@
+ #endif /* PTW32_SCHED_LEVEL >= PTW32_SCHED_LEVEL_MAX */
+ 
+ #if (defined(__MINGW64__) || defined(__MINGW32__)) || defined(_UWIN)
+-# if PTW32_SCHED_LEVEL >= PTW32_SCHED_LEVEL_MAX
+ /* For pid_t */
+ #  include <sys/types.h>
++# if PTW32_SCHED_LEVEL >= PTW32_SCHED_LEVEL_MAX
+ /* Required by Unix 98 */
+ #  include <time.h>
+ # else
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/crossmingw32-pthreads-w32.git/commitdiff/cf154bb78fa984382917811b04fdc155ffddaf37

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to