Closed jcelerier closed 2 years ago
hmm just checked and the 64-bit support appeard in glibc 2.23
This table can be used to determine the linux distros this is compatible with:
https://gist.github.com/wagenet/35adca1a032cec2999d47b6c40aa45b1
That's sad. It seems, the best is to move visit_directories
into a separate file ysfx_utils_fts.cpp
.
There, make a feature check on glibc's version and undef _FILE_OFFSET_BITS
as appropriate.
It's fine that visit_directories
would receive FTS_NS
codes for files, and we dont care about the stat data.
This is expected to be fixed, haven't checked it.
This adds compatibility flag -DYSFX_FTS_LACKS_LFS_SUPPORT
.
It's set if you use the cmake, otherwise add the flag yourself.
On CentOS 7 I'm facing:
which makes the build fail with:
Do you think I can safely comment that on that platform ? Or I should just update to a system with a more recent fts.h ? (if so, if you know what would be the minimal requirement..)