mallinfo is only defined on glibc and android by jvoisin · Pull Request #764 · uxlfoundation/oneTBB (original) (raw)
Description
The fact that the mallinfo structure isn't defined in musl means that it doesn't compile there:
[ 90%] Building CXX object src/tbbmalloc_proxy/CMakeFiles/tbbmalloc_proxy.dir/proxy.cpp.o
/__w/mimalloc-bench/mimalloc-bench/extern/tbb/src/tbbmalloc_proxy/proxy.cpp:263:26: error: return type 'struct mallinfo' is incomplete
263 | struct mallinfo mallinfo() __THROW
| ^
compilation terminated due to -Wfatal-errors.
Type of change
- bug fix - change that fixes an issue
- new feature - change that adds functionality
- tests - change in tests
- infrastructure - change in infrastructure and CI
- documentation - documentation update
Tests
- added - required for new features and some bug fixes
- not needed
Documentation
- updated in # - add PR number
- needs to be updated
- not needed
Breaks backward compatibility
- Yes
- No
- Unknown