aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/cygwin.din
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2023-08-30 11:32:02 +0200
committerCorinna Vinschen <corinna@vinschen.de>2023-09-01 12:38:52 +0200
commitd27e9fb29a92fc5984de51470d68d859783ab986 (patch)
tree2d564a5632c8304fcc22072eb5b4be8d0163af50 /winsup/cygwin/cygwin.din
parentcc4ff714ff4b59d8ecac90ddc45196a0ea74e22b (diff)
downloadnewlib-d27e9fb29a92fc5984de51470d68d859783ab986.zip
newlib-d27e9fb29a92fc5984de51470d68d859783ab986.tar.gz
newlib-d27e9fb29a92fc5984de51470d68d859783ab986.tar.bz2
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>
Diffstat (limited to 'winsup/cygwin/cygwin.din')
-rw-r--r--winsup/cygwin/cygwin.din2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/cygwin.din b/winsup/cygwin/cygwin.din
index ee646fd..3afadb7 100644
--- a/winsup/cygwin/cygwin.din
+++ b/winsup/cygwin/cygwin.din
@@ -49,6 +49,8 @@ __b64_ntop NOSIGFE
__b64_pton NOSIGFE
__bsd_qsort_r NOSIGFE
__chk_fail SIGFE
+__cpuset_alloc SIGFE
+__cpuset_free SIGFE
__cxa_atexit = cygwin__cxa_atexit SIGFE
__cxa_finalize SIGFE
__dn_comp SIGFE