git: 2d7aef8d9ce1 - main - lang/ghc: Add cpuset_t related patch.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Jul 2022 10:24:56 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2d7aef8d9ce1280eae5c445d1b06ba68b5997487
commit 2d7aef8d9ce1280eae5c445d1b06ba68b5997487
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2021-12-26 17:51:54 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2022-07-07 10:19:09 +0000
lang/ghc: Add cpuset_t related patch.
---
lang/ghc/files/patch-rts_posix_OSThreads.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lang/ghc/files/patch-rts_posix_OSThreads.c b/lang/ghc/files/patch-rts_posix_OSThreads.c
new file mode 100644
index 000000000000..95f328e2fbc7
--- /dev/null
+++ b/lang/ghc/files/patch-rts_posix_OSThreads.c
@@ -0,0 +1,11 @@
+--- rts/posix/OSThreads.c.orig 2021-10-28 20:41:34 UTC
++++ rts/posix/OSThreads.c
+@@ -325,7 +325,7 @@ getNumberOfProcessors (void)
+ nproc = 1;
+ }
+ }
+-#elif defined(freebsd_HOST_OS)
++#elif defined(freebsd_HOST_OS) && !defined(HAVE_SCHED_GETAFFINITY)
+ cpuset_t mask;
+ CPU_ZERO(&mask);
+ if(cpuset_getaffinity(CPU_LEVEL_CPUSET, CPU_WHICH_PID, -1, sizeof(mask), &mask) == 0) {