Group: Development/Libraries
Source0: https://github.com/meganz/mingw-std-threads/archive/%{gitref}/mingw-std-threads-%{snap}.tar.gz
# Source0-md5: e5f0fcdb69d99ab493f45e65767f9346
+Patch0: mingw-std-threads-include.patch
URL: https://github.com/meganz/mingw-std-threads
Requires: crossmingw32-gcc-c++ >= 1:4.7
+Requires: crossmingw32-runtime
+Requires: crossmingw32-w32api
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define no_install_post_strip 1
%prep
%setup -q -n mingw-std-threads-%{gitref}
+%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
--- /dev/null
+--- mingw-std-threads-b7e670d91d33b7ce5836c6255d37e69f17eb3687/mingw.mutex.h.orig 2016-03-16 15:05:58.000000000 +0100
++++ mingw-std-threads-b7e670d91d33b7ce5836c6255d37e69f17eb3687/mingw.mutex.h 2016-06-25 09:17:48.884289745 +0200
+@@ -41,6 +41,7 @@
+ \r
+ #include <windows.h>\r
+ #include <chrono>\r
++#include <cstdio>\r
+ #include <system_error>\r
+ \r
+ #ifndef EPROTO\r
+@@ -105,7 +106,7 @@
+ DWORD self = GetCurrentThreadId();\r
+ if (mOwnerThread == self)\r
+ {\r
+- fprintf(stderr, "FATAL: Recursive locking or non-recursive mutex detected. Throwing sysetm exception\n");\r
++ fprintf(stderr, "FATAL: Recursive locking or non-recursive mutex detected. Throwing system exception\n");\r
+ fflush(stderr);\r
+ throw system_error(EDEADLK, generic_category());\r
+ }\r