Index: configure =================================================================== --- configure (revision 27928) +++ configure (working copy) @@ -696,6 +697,7 @@ _asmalign_pot=auto _stream_cache=yes _def_stream_cache="#define CONFIG_STREAM_CACHE 1" +_def_pthread_cache="#undef PTHREAD_CACHE" _need_shmem=yes for ac_option do case "$ac_option" in @@ -3070,6 +3086,15 @@ fi echores "$_pthreads" +if cygwin ; then + if test "$_pthreads" = yes ; then + _def_pthread_cache="#define PTHREAD_CACHE 1" + else + _stream_cache=no + _def_stream_cache="#undef CONFIG_STREAM_CACHE" + fi +fi + echocheck "w32threads" if test "$_pthreads" = yes ; then _res_comment="using pthread instead" Index: stream/cache2.c =================================================================== --- stream/cache2.c (revision 27930) +++ stream/cache2.c (working copy) @@ -16,10 +16,6 @@ #include #include -#ifdef __CYGWIN__ -#define PTHREAD_CACHE 1 -#endif - #include "osdep/shmem.h" #include "osdep/timer.h" #if defined(__MINGW32__)