dirent: conditionalize dirent assert based on dirent64 existence
authorSam James <sam@gentoo.org>
Wed, 10 May 2023 00:47:13 +0000 (01:47 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 May 2023 06:05:18 +0000 (15:05 +0900)
commiteb29296937b268e0140a2ab1cf204c2ebb72fa5a
tree766341c3788cf78e941aac86de7d698a65fda6fc
parent8707dcdf3b5b4b01530639389350505fcb700969
dirent: conditionalize dirent assert based on dirent64 existence

>=musl-1.2.4 doesn't define dirent64 and its LFS friends as its "native"
functions are already LFS-aware.

Check for dirent64 in meson.build and only assert if it exists.

Bug: https://bugs.gentoo.org/905900
Closes: https://github.com/systemd/systemd/pull/25809
meson.build
src/basic/dirent-util.h