--- /dev/null
+--- 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
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
%prep
%setup -q -n pthreads-w32-%{dver}-release
%patch0 -p1
+%patch1 -p1
mkdir lib