浏览代码

another musl fix

Waldemar Brodkorb 11 年之前
父节点
当前提交
0975f98beb
共有 2 个文件被更改,包括 12 次插入1 次删除
  1. 1 1
      package/MesaLib/Makefile
  2. 11 0
      package/MesaLib/patches/patch-include_c11_threads_posix_h

+ 1 - 1
package/MesaLib/Makefile

@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=		MesaLib
 PKG_NAME:=		MesaLib
 PKG_VERSION:=		10.1.0
 PKG_VERSION:=		10.1.0
 PKG_SUBVER:=		10.1
 PKG_SUBVER:=		10.1
-PKG_RELEASE:=		2
+PKG_RELEASE:=		3
 PKG_MD5SUM:=		08e796ec7122aa299d32d4f67a254315
 PKG_MD5SUM:=		08e796ec7122aa299d32d4f67a254315
 PKG_DESCR:=		MESA 3D graphics library
 PKG_DESCR:=		MESA 3D graphics library
 PKG_SECTION:=		libs
 PKG_SECTION:=		libs

+ 11 - 0
package/MesaLib/patches/patch-include_c11_threads_posix_h

@@ -0,0 +1,11 @@
+--- Mesa-10.1.0.orig/include/c11/threads_posix.h	2014-02-27 02:56:39.000000000 +0100
++++ Mesa-10.1.0/include/c11/threads_posix.h	2014-03-14 21:54:55.000000000 +0100
+@@ -176,7 +176,7 @@ mtx_init(mtx_t *mtx, int type)
+         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);