diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-06-14 17:52:21 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-14 17:52:28 -0300 |
commit | 134a01279b0dd3fbabd7f81fe28fabcee64adfc6 (patch) | |
tree | 0c8c726883e80d00251da71627514a891acd05e1 /unmaintained/entropybroker/use-sched_yield.patch | |
parent | f16a4176cdef3ece55f6670819046db098a183de (diff) | |
download | aports-134a01279b0dd3fbabd7f81fe28fabcee64adfc6.tar.bz2 aports-134a01279b0dd3fbabd7f81fe28fabcee64adfc6.tar.xz |
unmaintained/entropybroker: move from testing
- Requires crypto++-5.6.2 and is thus blocking crypto++ update to 8.2.0
- Upstream has no intention of following API
(https://github.com/flok99/entropybroker/issues/8)
- Has no maintainer
Diffstat (limited to 'unmaintained/entropybroker/use-sched_yield.patch')
-rw-r--r-- | unmaintained/entropybroker/use-sched_yield.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/unmaintained/entropybroker/use-sched_yield.patch b/unmaintained/entropybroker/use-sched_yield.patch new file mode 100644 index 0000000000..6a06bcc310 --- /dev/null +++ b/unmaintained/entropybroker/use-sched_yield.patch @@ -0,0 +1,28 @@ +diff --git a/utils.cpp b/utils.cpp +index 33a8f97..805035f 100644 +--- a/utils.cpp ++++ b/utils.cpp +@@ -1,5 +1,5 @@ + #include <string> +-#include <pthread.h> ++#include <sched.h> + #include <vector> + #include <stdarg.h> + #include <unistd.h> +@@ -26,6 +26,7 @@ + #ifdef linux + #include <sys/syscall.h> + #endif ++# include <sched.h> + + #include "defines.h" + #include "error.h" +@@ -641,7 +642,7 @@ void my_yield() + { + // sched_yield + +- pthread_check(pthread_yield(), "pthread_yield"); ++ pthread_check(sched_yield(), "sched_yield"); + } + + bool file_exist(const char *file) |