X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Frain.c;h=ef2f6cbc58c1bb3b9b9ad223dad1771285bfad82;hp=11d4cb7c42918686217d712815bff2d09f280364;hb=36b653e854865c31c56f04d059d78a0d5e3f4e24;hpb=0ac2306dd3aaab1338d8b1458c15a7e476cfc3ff diff --git a/test/rain.c b/test/rain.c index 11d4cb7c..ef2f6cbc 100644 --- a/test/rain.c +++ b/test/rain.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: rain.c,v 1.36 2010/05/01 19:12:26 tom Exp $ + * $Id: rain.c,v 1.37 2010/09/25 22:16:12 juergen Exp $ */ #include @@ -222,7 +222,11 @@ draw_drop(void *arg) * Find myself in the list of threads so we can count the number of loops. */ for (mystats = 0; mystats < MAX_THREADS; ++mystats) { +#ifdef __MINGW32__ + if (drop_threads[mystats].myself.p == pthread_self().p) +#else if (drop_threads[mystats].myself == pthread_self()) +#endif break; }