From 2a280de522cfe8a7209f5030a57e56d9f7d9cf5a Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 24 Mar 2023 18:28:58 -0700 Subject: [PATCH] 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 Cc: Darrick J. Wong Cc: Zorro Lang Acked-by: Darrick J. Wong --- m4/package_libcdev.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 #include ]], [[ - 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) -- 2.39.5