Re: [Mesa-dev] [PATCH v2] c11/threads: Use PTHREAD_MUTEX_RECURSIVE by default

2015-02-03 Thread Felix Janda
Emil Velikov wrote: > On 3 February 2015 at 02:53, Emil Velikov wrote: > > Hi Felix, > > Thanks for the review. > > On 2 February 2015 at 19:04, Felix Janda wrote: > >> Previously PTHREAD_MUTEX_RECURSIVE_NP had been used on linux for > >> compatibi

[Mesa-dev] [PATCH v2] c11/threads: Use PTHREAD_MUTEX_RECURSIVE by default

2015-02-02 Thread Felix Janda
Previously PTHREAD_MUTEX_RECURSIVE_NP had been used on linux for compatibility with old glibc. Since mesa defines __GNU_SOURCE__ on linux PTHREAD_MUTEX_RECURSIVE is also available since at least 1998. So we can unconditionally use the portable version PTHREAD_MUTEX_RECURSIVE. --- Previous patch did

[Mesa-dev] [PATCH] c11/threads: Use PTHREAD_MUTEX_RECURSIVE by default

2015-02-01 Thread Felix Janda
Previously PTHREAD_MUTEX_RECURSIVE_NP had been used on linux for compatibility with old glibc. Now fall back to the nonstandard version only if the standard version is not defined. This makes mesa compile with musl libc. --- include/c11/threads_posix.h | 11 +-- 1 file changed, 5 insertion

[Mesa-dev] [PATCH v2] mesa: simplify detection of fpclassify

2015-01-25 Thread Felix Janda
Fixes compilation with musl libc. Reviewed-by: Ian Romanick --- Changes in v2: Add comment by Ian Romanick on fpclassify in C99 --- src/mesa/main/querymatrix.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/mesa/main/querymatrix.c b/src/mesa/main/quer

[Mesa-dev] [PATCH] mesa: simplify detection of fpclassify

2015-01-18 Thread Felix Janda
Fixes compilation with musl libc. --- src/mesa/main/querymatrix.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/mesa/main/querymatrix.c b/src/mesa/main/querymatrix.c index eb36c76..57c536f 100644 --- a/src/mesa/main/querymatrix.c +++ b/src/mesa/main/quer