mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
The NDK cross compiler declares the target as __linux (which is not technically incorrect), which triggers the enablement of _GNU_SOURCE in the newly added code that requires the presence of qsort_r() used in the COVER dictionary code. Even though the NDK uses llvm/libc, it doesn't declare qsort_r() in the stdlib.h header. The build fix is to only activate the _GNU_SOURCE macro if the OS is *not* Android, as then we will fallback to the C90 compliant code. This patch should solve the reported issue number #4103. |
||
|---|---|---|
| .. | ||
| cover.c | ||
| cover.h | ||
| divsufsort.c | ||
| divsufsort.h | ||
| fastcover.c | ||
| zdict.c | ||