mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -04:00
mono-proclib.c:776:3: error: unknown type name 'cpu_set_t'; did you mean 'cpuset_t'? cpu_set_t set; ^~~~~~~~~ cpuset_t /usr/include/sys/_cpuset.h:50:24: note: 'cpuset_t' declared here typedef struct _cpuset cpuset_t; ^ mono-proclib.c:777:7: error: implicit declaration of function 'sched_getaffinity' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (sched_getaffinity (mono_process_current_pid (), sizeof (set), &set) == 0) ^ mono-proclib.c:778:11: error: implicit declaration of function 'CPU_COUNT' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return CPU_COUNT (&set); ^ 3 errors generated. MFH after: 3 days
10 lines
270 B
C
10 lines
270 B
C
--- mono/utils/mono-proclib.c.orig 2018-08-24 08:17:13.000000000 -0700
|
|
+++ mono/utils/mono-proclib.c 2021-11-27 14:55:20.354869000 -0800
|
|
@@ -17,6 +17,7 @@
|
|
#include <unistd.h>
|
|
#endif
|
|
#ifdef HAVE_SCHED_GETAFFINITY
|
|
+#define _WITH_CPU_SET_T
|
|
#include <sched.h>
|
|
#endif
|
|
|