# HG changeset patch # User reimar # Date 1226778219 0 # Node ID 4c2232462353880b27a2dda7f296ba60e54cbfcb # Parent 69b4b8d73b5e94ca1dd4a05dcd581c68a9cd41ef 100l, stream->cache_pid can not be used directly in pthread_create, it has the wrong type. Luckily we currently do not need the value anyway. diff -r 69b4b8d73b5e -r 4c2232462353 stream/cache2.c --- a/stream/cache2.c Sat Nov 15 19:14:09 2008 +0000 +++ b/stream/cache2.c Sat Nov 15 19:43:39 2008 +0000 @@ -349,7 +349,11 @@ #elif defined(__OS2__) stream->cache_pid = _beginthread( ThreadProc, NULL, 256 * 1024, s ); #else - pthread_create(&stream->cache_pid, NULL, ThreadProc, s); + { + pthread_t tid; + pthread_create(&tid, NULL, ThreadProc, s); + stream->cache_pid = 1; + } #endif #endif // wait until cache is filled at least prefill_init %