summaryrefslogtreecommitdiffstats
path: root/opengl/libGLES_CM/gl_wrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opengl/libGLES_CM/gl_wrapper.cpp')
-rw-r--r--opengl/libGLES_CM/gl_wrapper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/opengl/libGLES_CM/gl_wrapper.cpp b/opengl/libGLES_CM/gl_wrapper.cpp
index 3b7f45e..3197535 100644
--- a/opengl/libGLES_CM/gl_wrapper.cpp
+++ b/opengl/libGLES_CM/gl_wrapper.cpp
@@ -203,7 +203,8 @@ static pthread_key_t gEGLThreadLocalStorageKey = -1;
#if defined(HAVE_ANDROID_OS) && !USE_SLOW_BINDING && !GL_LOGGER
-#include <sys/tls.h>
+/* special private C library header */
+#include <bionic_tls.h>
// We have a dedicated TLS slot in bionic
static inline void setGlThreadSpecific(gl_hooks_t const *value) {
((uint32_t *)__get_tls())[TLS_SLOT_OPENGL_API] = (uint32_t)value;