$NetBSD: patch-af,v 1.9 2011/01/26 19:25:55 drochner Exp $ --- pixman/pixman-compiler.h.orig 2011-01-19 13:05:40.000000000 +0000 +++ 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__) #include