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

Tests

Documentation

Breaks backward compatibility

Notify the following users

Other information