Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Nov 2021 06:39:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        multimedia@FreeBSD.org
Subject:   [Bug 259787] sched.h: unknown type name 'cpu_set_t' after 160b4b922b6021848b6b48afc894d16b879b7af2
Message-ID:  <bug-259787-12827-ILBZ3QPQwO@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259787-12827@https.bugs.freebsd.org/bugzilla/>
References:  <bug-259787-12827@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259787

--- Comment #28 from Trond.Endrestol@ximalas.info ---
Created attachment 229718
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229718&action=
=3Dedit
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) !=3D 0) {
        ^
iperf_api.c:4464:37: error: use of undeclared identifier 'cpu_set_t'; did y=
ou
mean 'cpuset'?
    if (sched_setaffinity(0, sizeof(cpu_set_t), &cpu_set) !=3D 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) !=3D 0) {
        ^
iperf_api.c:4512:37: error: use of undeclared identifier 'cpu_set_t'; did y=
ou
mean 'cpuset'?
    if (sched_setaffinity(0, sizeof(cpu_set_t), &cpu_set) !=3D 0) {
                                    ^~~~~~~~~
                                    cpuset
/usr/include/sys/cpuset.h:156:5: note: 'cpuset' declared here
int     cpuset(cpusetid_t *);
        ^
2 warnings and 4 errors generated.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259787-12827-ILBZ3QPQwO>