mingw32-runtime to version 3.15.1, requires a small patch.
[fedora-mingw.git] / runtime / mingw32-runtime-3.15.1-useconds_t.patch
1 --- mingwrt-3.15.1-mingw32/mingwex/usleep.c     2008-05-04 13:15:41.000000000 +0100
2 +++ mingwrt-3.15.1-mingw32.usleep/mingwex/usleep.c      2008-10-16 17:58:36.000000000 +0100
3 @@ -26,6 +26,11 @@
4  #define WIN32_LEAN_AND_MEAN
5  #include <windows.h>
6  
7 +/* RWMJ: This is defined in our local sys/types.h but for some reason
8 + * isn't picked up.
9 + */
10 +typedef unsigned int useconds_t;
11 +
12  int __cdecl usleep(useconds_t useconds)
13  {
14      if(useconds == 0)