use fstatat, not fstatat64
the stat64 family of functions were provided as transitional functions, but when building on glibc with _GNU_SOURCE, or any other supported system, the stat functions are equivalent to their stat64 counterparts
this is partially related to macOS, but not really, so ref #10794 (closed).
Edited by Ariadne Conill