aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/mesa/files/mesa-10-pthread.patch')
-rw-r--r--media-libs/mesa/files/mesa-10-pthread.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/media-libs/mesa/files/mesa-10-pthread.patch b/media-libs/mesa/files/mesa-10-pthread.patch
new file mode 100644
index 00000000..17a8bda0
--- /dev/null
+++ b/media-libs/mesa/files/mesa-10-pthread.patch
@@ -0,0 +1,24 @@
+mesa-10.patch from sabotage linux
+
+--- ./include/c11/threads_posix.h.orig
++++ ./include/c11/threads_posix.h
+@@ -178,7 +178,7 @@
+ return thrd_error;
+ pthread_mutexattr_init(&attr);
+ if ((type & mtx_recursive) != 0) {
+-#if defined(__linux__) || defined(__linux)
++#if defined(__GLIBC__)
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
+ #else
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
+--- ./src/gallium/winsys/svga/drm/vmw_screen.h.orig
++++ ./src/gallium/winsys/svga/drm/vmw_screen.h
+@@ -34,7 +34,7 @@
+ #ifndef VMW_SCREEN_H_
+ #define VMW_SCREEN_H_
+
+-
++#include <sys/stat.h>
+ #include "pipe/p_compiler.h"
+ #include "pipe/p_state.h"
+