$NetBSD: patch-af,v 1.10 2011/12/31 15:37:55 bsiegert Exp $ --- pixman/pixman-compiler.h.orig Mon Jul 4 20:22:16 2011 +++ pixman/pixman-compiler.h @@ -82,7 +82,7 @@ # define PIXMAN_GET_THREAD_LOCAL(name) \ (&name) -#elif defined(TOOLCHAIN_SUPPORTS__THREAD) +#elif defined(TOOLCHAIN_SUPPORTS__THREAD) && !defined(__NetBSD__) # define PIXMAN_DEFINE_THREAD_LOCAL(type, name) \ static __thread type name @@ -149,7 +149,7 @@ # define PIXMAN_GET_THREAD_LOCAL(name) \ (&name) -#elif defined(HAVE_PTHREAD_SETSPECIFIC) +#elif defined(HAVE_PTHREAD_SETSPECIFIC) || defined(__NetBSD__) || defined(__MirBSD__) #include