Re: [Jack-Devel] Problem using Jack2 with MinGW and pthreads

PrevNext  Index
DateMon, 21 Feb 2011 10:03:24 +0000
From Peter Nelson <[hidden] at fuzzle dot org>
To[hidden] at lists dot jackaudio dot org
In-Reply-ToTim Mayberry [Jack-Devel] Problem using Jack2 with MinGW and pthreads
Follow-Uptorbenh Re: [Jack-Devel] Problem using Jack2 with MinGW and pthreads
On Mon, 2011-02-21 at 19:52 +1000, Tim Mayberry wrote:
> I've been working on porting an existing application to windows using
> the MinGW compiler. The application uses both pthreads via
> (http://sourceware.org/pthreads-win32) and the jack API via jack2
> 
> The problem I'm having(I think) is that pthread_t is getting redefined
> via jack/systemdeps.h
> 
> The relevant section:
> 
> #elif __MINGW32__   /* MINGW */
>     #include <stdint.h>
>     #include <sys/types.h>
>     #ifndef pthread_t
>         typedef HANDLE pthread_t;
>     #endif
> #else

#ifndef pthread_t seems bogus to me. pthread_t will be a type, not a
preprocessor definition.

Does commenting out the typedef help?

Peter.
PrevNext  Index

1298282624.30744_0.ltw:2,a <1298282604.29712.2.camel at petern dot bnsnet dot co dot uk>