summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2025-01-13 08:31:02 -0500
committerRich Felker <dalias@aerifal.cx>2025-01-13 08:31:02 -0500
commit1a98576401ff604ff06a030a3644e2780b2a837d (patch)
tree7cb8e513f930b66c58e97737dec33ffb038de850 /src
parentd36e5bf83b601da15b2b4ab0cc225d3fb93ef489 (diff)
downloadmusl-1a98576401ff604ff06a030a3644e2780b2a837d.tar.gz
sched.h: reduce namespace conflicts in _GNU_SOURCE profile
we have the cpuset macros call calloc/free/memset/memcmp directly so that they don't depend on any further ABI surface. this is not namespace-clean, but only affects the _GNU_SOURCE feature profile, which is not intended to be namespace-clean. nonetheless, reports come up now and then of things which are gratuitously broken, usually when an application has wrapped malloc with macros. this patch parenthesizes the function names so that function-like macros will not be expanded, and removes the unused declaration of memcpy. this is not a complete solution, but it should improve things for affected applications, particularly ones which are not even trying to use the cpuset interfaces which got them just because g++ always defines _GNU_SOURCE.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions