]> git.pld-linux.org Git - packages/crossmingw32-pthreads-w32.git/commitdiff
- added sched patch (fix include for pid_t in sched.h); release 4 auto/th/crossmingw32-pthreads-w32-2.9.1-4
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 20 Dec 2018 17:13:47 +0000 (18:13 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 20 Dec 2018 17:13:47 +0000 (18:13 +0100)
crossmingw32-pthreads-w32-sched.patch [new file with mode: 0644]
crossmingw32-pthreads-w32.spec

diff --git a/crossmingw32-pthreads-w32-sched.patch b/crossmingw32-pthreads-w32-sched.patch
new file mode 100644 (file)
index 0000000..376c0ff
--- /dev/null
@@ -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
index 0b0c2c284df48ac213d7f6e8493b50d477bb9ac4..c0a83d52a0bea1ee78fc1cd6160fd583cde2652b 100644 (file)
@@ -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
 
This page took 0.122039 seconds and 4 git commands to generate.