]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: sys/cpuset.h: add cpuset-specific external functions
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 30 Aug 2023 09:32:02 +0000 (11:32 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 1 Sep 2023 10:43:36 +0000 (12:43 +0200)
commit797d1bbd2e115872df10cf1c15ccc6cfc99648d6
tree1f187ba5abc4a879ffa3dda371e74ebda37062e8
parent930f210b21c59298944f237002c36db0b990a4d9
Cygwin: sys/cpuset.h: add cpuset-specific external functions

The latest incarnation of sys/cpuset.h broke building coreutils.
The reason is the inclusion of stdlib.h and string.h and hence
premature requests for datatypes not yet defined in the include
chain.

Avoid this by defining __cpuset_alloc and __cpuset_free as external
functions, now defined in sched.cc.  Linux is doing this too, just
using different names for the functions. Redefine  __cpuset_zero_s
to use __builtin_memset only on compilers supporting it, otherwise
using a simple loop. Drop the stdlib.h and string.h includes.

Fixes: 3f2790e04439 ("Cygwin: Make gcc-specific code in <sys/cpuset.h> compiler-agnostic")
Reported-by: Denis Excoffier <cygwin@Denis-Excoffier.org>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/cygwin.din
winsup/cygwin/include/sys/cpuset.h
winsup/cygwin/sched.cc
This page took 0.033378 seconds and 5 git commands to generate.