diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-03-24 18:28:58 -0700 |
---|---|---|
committer | Zorro Lang <zlang@kernel.org> | 2023-03-25 12:38:44 +0800 |
commit | 2a280de522cfe8a7209f5030a57e56d9f7d9cf5a (patch) | |
tree | eb99ecfb7f2dff53b57860ee86db626722296ed1 /m4 | |
parent | 3a9e43ba45fb10740c2c7964c2be91aad9606709 (diff) |
m4: Check for FTW_ACTIONRETVAL along with nftw
FTW_ACTIONRETVAL is glibc specific extention which is used to implement
xfsfind but it may not be available on other C library implementations on Linux
e.g. musl. Therefore ensure that these defines are available before declaring
nftw() to be usable
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Darrick J. Wong <djwong@kernel.org>
Cc: Zorro Lang <zlang@redhat.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/package_libcdev.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4 index b41c087b..7f731044 100644 --- a/m4/package_libcdev.m4 +++ b/m4/package_libcdev.m4 @@ -132,7 +132,7 @@ AC_DEFUN([AC_HAVE_NFTW], #include <stddef.h> #include <ftw.h> ]], [[ - nftw("/", (int (*)(const char *, const struct stat *, int, struct FTW *))1, 0, 0); + nftw("/", (int (*)(const char *, const struct stat *, int, struct FTW *))1, 0, FTW_ACTIONRETVAL); ]])],[have_nftw=yes AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]) AC_SUBST(have_nftw) |