summaryrefslogtreecommitdiff
path: root/dev-libs/zthread/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-07 21:14:14 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-07 21:14:14 +0000
commit6d44cd74809cea5f81bf52ff9cd0aa902d6b6866 (patch)
tree4045142b80c7e0479c627a84e3f0de03e574df19 /dev-libs/zthread/files
parent8615c518b1f1d03130f21656a1a026959bb1e9c9 (diff)
gentoo auto-resync : 07:12:2022 - 21:14:14
Diffstat (limited to 'dev-libs/zthread/files')
-rw-r--r--dev-libs/zthread/files/zthread-2.3.2-configure-clang16.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-libs/zthread/files/zthread-2.3.2-configure-clang16.patch b/dev-libs/zthread/files/zthread-2.3.2-configure-clang16.patch
new file mode 100644
index 000000000000..998dc36c2976
--- /dev/null
+++ b/dev-libs/zthread/files/zthread-2.3.2-configure-clang16.patch
@@ -0,0 +1,22 @@
+pthread_yield needs GNU_SOURCE (missing in the test here), but pthread_yield
+is both deprecated and also not actually used (even conditionally!) in zthread,
+so let's just drop the test.
+
+(zthread uses sched_yield conditionally, however.)
+--- a/share/pthread.m4
++++ b/share/pthread.m4
+@@ -128,14 +128,6 @@ pthread_explicit="no"
+ AC_DEFINE(HAVE_SCHED_YIELD,,[Defined if sched_yield() is available]) ],
+ [ AC_MSG_RESULT(no) ])
+
+- dnl Check for pthread_yield
+- AC_MSG_CHECKING(for pthread_yield);
+- AC_TRY_LINK([#include <pthread.h>],
+- [ pthread_yield(); ],
+- [ AC_MSG_RESULT(yes)
+- AC_DEFINE(HAVE_PTHREAD_YIELD,,[Defined if pthread_yield() is available]) ],
+- [ AC_MSG_RESULT(no) ])
+-
+ dnl Check for pthread_key_create
+ AC_MSG_CHECKING(for pthread_key_create)
+ AC_TRY_LINK([#include <pthread.h>],