X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Frain.c;h=ef2f6cbc58c1bb3b9b9ad223dad1771285bfad82;hb=f7340994c9dc299dd54a1b4cde949027436f1599;hp=11d4cb7c42918686217d712815bff2d09f280364;hpb=92e187a3459ab7ce1613a3684ca6642447c73620;p=ncurses.git 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; }