Builds for android fails after adding this patch. Here is the error (compiled with ndk-r17, default compiler - clang-7). Then I checked with Clang-9, the same thing)
misc.cpp:306:10: error: use
of undeclared identifier
'aligned_alloc'
*mem = aligned_alloc