musl: meson: check existence of renameat2()

musl-1.2.5 does not provide renameat2(). Note, it is added by
05ce67fea9,
hence hopefully it will be provided by musl-1.2.6 or newer.
This commit is contained in:
Yu Watanabe
2025-06-09 13:00:37 +09:00
parent 0736854da9
commit 17e343b58b
4 changed files with 29 additions and 0 deletions

View File

@@ -579,6 +579,7 @@ assert(long_max > 100000)
conf.set_quoted('LONG_MAX_STR', f'@long_max@')
foreach ident : [
['renameat2', '''#include <stdio.h>'''], # since musl-1.2.6
['set_mempolicy', '''#include <sys/syscall.h>'''], # declared at numaif.h provided by libnuma, which we do not use
['get_mempolicy', '''#include <sys/syscall.h>'''], # declared at numaif.h provided by libnuma, which we do not use
['strerrorname_np', '''#include <string.h>'''], # since glibc-2.32