[Bug 259787] sched.h: unknown type name 'cpu_set_t' after 160b4b922b6021848b6b48afc894d16b879b7af2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 25 Nov 2021 06:39:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259787
--- Comment #28 from Trond.Endrestol@ximalas.info ---
Created attachment 229718
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=229718&action=edit
Patch for src/iperf_api.c
Should fix these errors:
iperf_api.c:4460:5: error: unknown type name 'cpu_set_t'; did you mean
'cpuset_t'?
cpu_set_t cpu_set;
^~~~~~~~~
cpuset_t
/usr/include/sys/_cpuset.h:50:24: note: 'cpuset_t' declared here
typedef struct _cpuset cpuset_t;
^
iperf_api.c:4464:9: warning: implicit declaration of function
'sched_setaffinity' is invalid in C99 [-Wimplicit-function-declaration]
if (sched_setaffinity(0, sizeof(cpu_set_t), &cpu_set) != 0) {
^
iperf_api.c:4464:37: error: use of undeclared identifier 'cpu_set_t'; did you
mean 'cpuset'?
if (sched_setaffinity(0, sizeof(cpu_set_t), &cpu_set) != 0) {
^~~~~~~~~
cpuset
/usr/include/sys/cpuset.h:156:5: note: 'cpuset' declared here
int cpuset(cpusetid_t *);
^
iperf_api.c:4506:5: error: unknown type name 'cpu_set_t'; did you mean
'cpuset_t'?
cpu_set_t cpu_set;
^~~~~~~~~
cpuset_t
/usr/include/sys/_cpuset.h:50:24: note: 'cpuset_t' declared here
typedef struct _cpuset cpuset_t;
^
iperf_api.c:4512:9: warning: implicit declaration of function
'sched_setaffinity' is invalid in C99 [-Wimplicit-function-declaration]
if (sched_setaffinity(0, sizeof(cpu_set_t), &cpu_set) != 0) {
^
iperf_api.c:4512:37: error: use of undeclared identifier 'cpu_set_t'; did you
mean 'cpuset'?
if (sched_setaffinity(0, sizeof(cpu_set_t), &cpu_set) != 0) {
^~~~~~~~~
cpuset
/usr/include/sys/cpuset.h:156:5: note: 'cpuset' declared here
int cpuset(cpusetid_t *);
^
2 warnings and 4 errors generated.
--
You are receiving this mail because:
You are on the CC list for the bug.