summaryrefslogtreecommitdiff
path: root/graphics/MesaLib/patches/patch-src_mapi_u__current.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/MesaLib/patches/patch-src_mapi_u__current.h')
-rw-r--r--graphics/MesaLib/patches/patch-src_mapi_u__current.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/graphics/MesaLib/patches/patch-src_mapi_u__current.h b/graphics/MesaLib/patches/patch-src_mapi_u__current.h
new file mode 100644
index 00000000000..c137f9122b6
--- /dev/null
+++ b/graphics/MesaLib/patches/patch-src_mapi_u__current.h
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_mapi_u__current.h,v 1.1 2015/09/11 16:27:30 tnn Exp $
+
+NetBSD only supports zero-initialized initial-exec tls variables in conjuction
+with dlopen(3) at the moment.
+
+--- src/mapi/u_current.h.orig 2015-09-02 17:06:23.000000000 +0000
++++ src/mapi/u_current.h
+@@ -68,7 +68,7 @@ u_current_get_context_internal(void);
+ static inline const struct mapi_table *
+ u_current_get_table(void)
+ {
+-#ifdef GLX_USE_TLS
++#if defined(GLX_USE_TLS) && !defined(__NetBSD__)
+ return u_current_table;
+ #else
+ return (likely(u_current_table) ?