pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
galera: more NetBSD portability
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By: wiz
Date: Fri Jan 13 12:01:33 2023 +0100
Changeset: 135328746f1dc41f7c13832f04921909c933e21c
Modified Files:
galera/distinfo
Added Files:
galera/patches/patch-galerautils_src_gu__thread.cpp
Log Message:
galera: more NetBSD portability
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=135328746f1dc41f7c13832f04921909c933e21c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
galera/distinfo | 1 +
galera/patches/patch-galerautils_src_gu__thread.cpp | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+)
diffs:
diff --git a/galera/distinfo b/galera/distinfo
index acba220a17..0ff88a5f18 100644
--- a/galera/distinfo
+++ b/galera/distinfo
@@ -17,4 +17,5 @@ SHA1 (patch-galerautils_src_gu__fdesc.cpp) = d72f5142f32b602a20ac77275ef3d9bddae
SHA1 (patch-galerautils_src_gu__limits.c) = 9d7a7315f17670fff836dfafd641196c2cdf51cc
SHA1 (patch-galerautils_src_gu__resolver.cpp) = a057a5802d38cbf716a1a1a493ea5ae7e41eba09
SHA1 (patch-galerautils_src_gu__system.h) = 9d0062df2878af8277a6fe2de072d5fefc297e4f
+SHA1 (patch-galerautils_src_gu__thread.cpp) = ffd3a19f004d23a805d512d633081add8060d208
SHA1 (patch-gcs_src_gcs__spread.cpp) = ab3088ca2d5b12592bc51bc8c6221666f6319449
diff --git a/galera/patches/patch-galerautils_src_gu__thread.cpp b/galera/patches/patch-galerautils_src_gu__thread.cpp
new file mode 100644
index 0000000000..348a751a11
--- /dev/null
+++ b/galera/patches/patch-galerautils_src_gu__thread.cpp
@@ -0,0 +1,20 @@
+$NetBSD$
+
+Improve NetBSD support.
+
+--- galerautils/src/gu_thread.cpp.orig 2022-11-02 06:09:14.000000000 +0000
++++ galerautils/src/gu_thread.cpp
+@@ -89,6 +89,13 @@ void gu::thread_set_schedparam(pthread_t
+ #else
+ struct sched_param spstr = { sp.prio() };
+ #endif
++#if defined(__NetBSD__)
++ if (sp.policy() == SCHED_OTHER)
++ {
++ /* NetBSD does not allow setting priorities for SCHED_OTHER */
++ return;
++ }
++#endif
+ int err;
+ if ((err = pthread_setschedparam(thd, sp.policy(), &spstr)) != 0)
+ {
Home |
Main Index |
Thread Index |
Old Index