On 2026-05-10 15:29, Bruno Haible via Gnulib discussion list wrote:
gl_cv_func_free_preserves_errno should be set to 'yes' for newer versions of musl, and to 'no' for older ones. But your patch sets it to 'yes' always.
There is a potential hack that could help fix this. musl 1.2.3, which fixed the 'free' issue, also introduced the SEEK_DATA macro to <unistd.h>. So this is a way at compile-time that one could determine whether we know we are using musl 1.2.3 or later.
Of course this sort of configury is against the musl philosophy, but we're already going against that with m4/musl.m4 etc.
If the patch is important enough, perhaps Alyssa could adjust the patch with that hack in mind....
