diff options
| author | Tomáš Mózes <hydrapolic@gmail.com> | 2020-01-31 08:17:24 +0100 |
|---|---|---|
| committer | Joonas Niilola <juippis@gentoo.org> | 2020-02-03 08:37:53 +0200 |
| commit | a0111536f393cd3776de329f52d1f3b2ce5dfec4 (patch) | |
| tree | 09d704cbd903bb6b09cac0ff2bba685741e449fc /dev-libs/concurrencykit/files/concurrencykit-glibc-2.30.patch | |
| parent | 82d552eb030f6c4c487633a3c2c44b647a44af7f (diff) | |
| download | gentoo-a0111536f393cd3776de329f52d1f3b2ce5dfec4.tar.gz gentoo-a0111536f393cd3776de329f52d1f3b2ce5dfec4.tar.bz2 gentoo-a0111536f393cd3776de329f52d1f3b2ce5dfec4.zip | |
dev-libs/concurrencykit: bump to 0.7.0
Closes: https://bugs.gentoo.org/696418
Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/concurrencykit/files/concurrencykit-glibc-2.30.patch')
| -rw-r--r-- | dev-libs/concurrencykit/files/concurrencykit-glibc-2.30.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-libs/concurrencykit/files/concurrencykit-glibc-2.30.patch b/dev-libs/concurrencykit/files/concurrencykit-glibc-2.30.patch new file mode 100644 index 000000000000..452421c63125 --- /dev/null +++ b/dev-libs/concurrencykit/files/concurrencykit-glibc-2.30.patch @@ -0,0 +1,37 @@ +diff --git a/regressions/common.h b/regressions/common.h +index 6e53483d..9cdc690a 100644 +--- a/regressions/common.h ++++ b/regressions/common.h +@@ -267,13 +267,11 @@ struct affinity { + #define AFFINITY_INITIALIZER {0, 0} + + #ifdef __linux__ +-#ifndef gettid + static pid_t +-gettid(void) ++common_gettid(void) + { + return syscall(__NR_gettid); + } +-#endif /* gettid */ + + CK_CC_UNUSED static int + aff_iterate(struct affinity *acb) +@@ -285,7 +283,7 @@ aff_iterate(struct affinity *acb) + CPU_ZERO(&s); + CPU_SET(c % CORES, &s); + +- if (sched_setaffinity(gettid(), sizeof(s), &s) != 0) ++ if (sched_setaffinity(common_gettid(), sizeof(s), &s) != 0) + perror("WARNING: Could not affine thread"); + + return 0; +@@ -300,7 +298,7 @@ aff_iterate_core(struct affinity *acb, unsigned int *core) + CPU_ZERO(&s); + CPU_SET((*core) % CORES, &s); + +- if (sched_setaffinity(gettid(), sizeof(s), &s) != 0) ++ if (sched_setaffinity(common_gettid(), sizeof(s), &s) != 0) + perror("WARNING: Could not affine thread"); + + return 0; |
