[Mesa-dev] Mesa (master): c11: Do not use pthread_mutex_timedlock on NetBSD.

Jose Fonseca jfonseca at vmware.com
Sat Jan 25 03:51:14 PST 2014



----- Original Message -----
> 
> 
> ----- Original Message -----
> > Module: Mesa
> > Branch: master
> > Commit: a487b4d0e3dfdf21d9604d4e36c65c5113c4ce7a
> > URL:
> > https://urldefense.proofpoint.com/v1/url?u=http://cgit.freedesktop.org/mesa/mesa/commit/?id%3Da487b4d0e3dfdf21d9604d4e36c65c5113c4ce7a&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=g8fFFoc2clMzXlUCVio0faQ7npLyyWmzG2X93CYOm9M%3D%0A&s=1b7796b32649dfabc371a9a82f575bbf2247a2f0d64fd9ce7bbc08de1263601a
> > 
> > Author: Vinson Lee <vlee at freedesktop.org>
> > Date:   Fri Jan 24 15:35:18 2014 -0800
> > 
> > c11: Do not use pthread_mutex_timedlock on NetBSD.
> > 
> > This patch fixes the NetBSD build.
> > 
> > NetBSD does not have pthread_mutex_timedlock.
> > 
> >   CC       glapi_dispatch.lo
> > threads_posix.h: In function 'mtx_timedlock':
> > threads_posix.h:216:5: error: implicit declaration of function
> > 'pthread_mutex_timedlock'
> > 
> > Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> > 
> > ---
> > 
> >  include/c11/threads_posix.h |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/include/c11/threads_posix.h b/include/c11/threads_posix.h
> > index e54af39..7e96715 100644
> > --- a/include/c11/threads_posix.h
> > +++ b/include/c11/threads_posix.h
> > @@ -41,7 +41,7 @@ Configuration macro:
> >      Use pthread_mutex_timedlock() for `mtx_timedlock()'
> >      Otherwise use mtx_trylock() + *busy loop* emulation.
> >  */
> > -#if !defined(__CYGWIN__) && !defined(__APPLE__)
> > +#if !defined(__CYGWIN__) && !defined(__APPLE__) && !defined(__NetBSD__)
> >  #define EMULATED_THREADS_USE_NATIVE_TIMEDLOCK
> >  #endif
> >  
> > 
> > _______________________________________________
> > mesa-commit mailing list
> > mesa-commit at lists.freedesktop.org
> > https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/mesa-commit&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=g8fFFoc2clMzXlUCVio0faQ7npLyyWmzG2X93CYOm9M%3D%0A&s=82b7edeed1e63abc344f02ee3a3d4870f17e9fa90c1b8ac8b34c8d1f1570f674
> > 
> 
> Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
> 

Doh. It's a commit message not a review request! *must drink a cup of coffee*

Jose


More information about the mesa-dev mailing list