$NetBSD: patch-af,v 1.9 2011/01/26 19:25:55 drochner 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 <pthread.h>
 
