update Wed Jun 16 12:37:00 PDT 2010
[pkgsrc.git] / x11 / pixman / patches / patch-af
1 $NetBSD: patch-af,v 1.8 2010/06/16 16:35:57 drochner Exp $
2
3 --- pixman/pixman-compiler.h.orig       2010-05-12 20:15:42.000000000 +0000
4 +++ pixman/pixman-compiler.h
5 @@ -70,7 +70,7 @@
6  #endif
7  
8  /* TLS */
9 -#if defined(TOOLCHAIN_SUPPORTS__THREAD)
10 +#if defined(TOOLCHAIN_SUPPORTS__THREAD) && !defined(__NetBSD__)
11  
12  #   define PIXMAN_DEFINE_THREAD_LOCAL(type, name)                      \
13      static __thread type name
14 @@ -149,7 +149,7 @@ extern __stdcall int ReleaseMutex (void 
15  #   define PIXMAN_GET_THREAD_LOCAL(name)                               \
16      (&name)
17  
18 -#elif defined(HAVE_PTHREAD_SETSPECIFIC)
19 +#elif defined(HAVE_PTHREAD_SETSPECIFIC) || defined(__NetBSD__)
20  
21  #include <pthread.h>
22