apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Trawick" <traw...@gmail.com>
Subject Re: Compile failure in apr/threadproc/unix/thread.c
Date Mon, 29 Jan 2007 19:29:05 GMT
On 1/23/07, David Jones <oscaremma@gmail.com> wrote:
> Yes, +1
>
>
> On 1/16/07, Jeff Trawick <trawick@gmail.com> wrote:
> > We shouldn't be defining PTHREAD_ symbols for applications.  For APR,
> > the application passes in zero or non-zero.
> >
> > How about changing thread.c as follows?
> >
> > #if defined(PTHREAD_CREATE_DETACHED)
> > #define DETACH_ARG(v) ((v) ? PTHREAD_CREATE_DETACHED :
> PTHREAD_CREATE_JOINABLE)
> > #else
> > #define DETACH_ARG(v) ((v) ? 1 : 0)
> > #endif
> >
committed to apr trunk and 1.2.x branch
thanks!

Mime
View raw message