readline/readline-5.2.tar.gz
runtime-bootstrap/mingw-runtime-3.14.tar.gz
runtime/mingw-runtime-3.14-src.tar.gz
+runtime/mingwrt-3.15.1-mingw32-src.tar.gz
sqlite/sqlite-3.5.9.tar.gz
termcap/termcap-1.3.1.tar.gz
w32api-bootstrap/w32api-3.11.tar.gz
--- /dev/null
+--- mingwrt-3.15.1-mingw32/mingwex/usleep.c 2008-05-04 13:15:41.000000000 +0100
++++ mingwrt-3.15.1-mingw32.usleep/mingwex/usleep.c 2008-10-16 17:58:36.000000000 +0100
+@@ -26,6 +26,11 @@
+ #define WIN32_LEAN_AND_MEAN
+ #include <windows.h>
+
++/* RWMJ: This is defined in our local sys/types.h but for some reason
++ * isn't picked up.
++ */
++typedef unsigned int useconds_t;
++
+ int __cdecl usleep(useconds_t useconds)
+ {
+ if(useconds == 0)
%define __find_provides %{_mingw32_findprovides}
Name: mingw32-runtime
-Version: 3.14
-Release: 6%{?dist}
+Version: 3.15.1
+Release: 1%{?dist}
Summary: MinGW Windows cross-compiler runtime and root filesystem
License: Public Domain
Group: Development/Libraries
URL: http://www.mingw.org/
-Source0: http://dl.sourceforge.net/sourceforge/mingw/mingw-runtime-%{version}-src.tar.gz
+Source0: http://dl.sourceforge.net/sourceforge/mingw/mingwrt-%{version}-mingw32-src.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0: mingw32-runtime-3.15.1-useconds_t.patch
+
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 26
%prep
-%setup -q -n mingw-runtime-%{version}
+%setup -q -n mingwrt-%{version}-mingw32
+%patch0 -p1
%build