summaryrefslogtreecommitdiff
path: root/cl-linux-yield.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2022-06-06 16:37:41 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2022-06-06 16:37:41 -0700
commit3ee70de3d9359485b37785fe28a31b7c87a0f8da (patch)
treea28f328f329e471784b2d2d3e40aaf06a5fbfa98 /cl-linux-yield.patch
parentAdd optimizations (diff)
downloadsyncterm-3ee70de3d9359485b37785fe28a31b7c87a0f8da.tar.xz
Rebuild with pthread patches.
Diffstat (limited to 'cl-linux-yield.patch')
-rw-r--r--cl-linux-yield.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/cl-linux-yield.patch b/cl-linux-yield.patch
new file mode 100644
index 0000000..5ad87ac
--- /dev/null
+++ b/cl-linux-yield.patch
@@ -0,0 +1,12 @@
+--- kernel/thread.orig 2022-06-01 11:44:29.563747178 -0400
++++ kernel/thread.h 2022-06-01 11:46:19.093752131 -0400
+@@ -3005,7 +3005,8 @@
+ #endif /* Slowaris 5.7 / 7.x or newer */
+ #elif defined( _AIX ) || defined( __Android__ ) || defined( __CYGWIN__ ) || \
+ ( defined( __hpux ) && ( OSVERSION >= 11 ) ) || \
+- defined( __NetBSD__ ) || defined( __QNX__ ) || defined( __UCLIBC__ )
++ defined( __NetBSD__ ) || defined( __QNX__ ) || \
++ defined( __UCLIBC__ ) || defined(__linux__)
+ #define THREAD_YIELD() sched_yield()
+ #elif defined( __XMK__ )
+ /* The XMK underlying scheduling object is the process context, for which