[Bug 259787] sched.h: unknown type name 'cpu_set_t' after 160b4b922b6021848b6b48afc894d16b879b7af2

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 23 Nov 2021 17:05:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259787

--- Comment #25 from khb <khb.dev@gmail.com> ---
I believe lang/guile2 is also affected by this:

posix.c:2114:29: error: unknown type name 'cpu_set_t'; did you mean 'cpuset_t'?
cpu_set_to_bitvector (const cpu_set_t *cs)
                            ^~~~~~~~~
                            cpuset_t
/usr/include/sys/_cpuset.h:50:24: note: 'cpuset_t' declared here
typedef struct _cpuset cpuset_t;
                       ^
posix.c:2141:3: error: unknown type name 'cpu_set_t'; did you mean 'cpuset_t'?
  cpu_set_t cs;
  ^~~~~~~~~
  cpuset_t
/usr/include/sys/_cpuset.h:50:24: note: 'cpuset_t' declared here
typedef struct _cpuset cpuset_t;
                       ^
posix.c:2144:9: warning: implicit declaration of function 'sched_getaffinity'
is invalid in C99 [-Wimplicit-function-declaration]
  err = sched_getaffinity (scm_to_int (pid), sizeof (cs), &cs);
        ^
posix.c:2161:3: error: unknown type name 'cpu_set_t'; did you mean 'cpuset_t'?
  cpu_set_t cs;
  ^~~~~~~~~
  cpuset_t
/usr/include/sys/_cpuset.h:50:24: note: 'cpuset_t' declared here
typedef struct _cpuset cpuset_t;
                       ^
posix.c:2180:9: warning: implicit declaration of function 'sched_setaffinity'
is invalid in C99 [-Wimplicit-function-declaration]
  err = sched_setaffinity (scm_to_int (pid), sizeof (cs), &cs);
        ^
2 warnings and 3 errors generated.
gmake[5]: *** [Makefile:3540: libguile_2.2_la-posix.lo] Error 1
gmake[5]: Leaving directory '/usr/ports/lang/guile2/work/guile-2.2.7/libguile'
gmake[4]: *** [Makefile:2423: all] Error 2
gmake[4]: Leaving directory '/usr/ports/lang/guile2/work/guile-2.2.7/libguile'
gmake[3]: *** [Makefile:1857: all-recursive] Error 1
gmake[3]: Leaving directory '/usr/ports/lang/guile2/work/guile-2.2.7'
gmake[2]: *** [Makefile:1743: all] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/guile2/work/guile-2.2.7'
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/guile2
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/guile2

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