1From 5facddc332c5ff8330f93c0a7e1b7f6d7bbd24a3 Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Sun, 5 Nov 2023 08:31:21 -0800 4Subject: [PATCH] add missing FTW_ macros when not available in libc 5 6Fixes build with musl 7 8| xfsfind.c:176:13: error: use of undeclared identifier 'FTW_STOP' 9| 176 | retval = FTW_STOP; 10| | ^ 11 12Upstream-Status: Pending 13Signed-off-by: Khem Raj <raj.khem@gmail.com> 14--- 15 src/global.h | 12 ++++++++++++ 16 1 file changed, 12 insertions(+) 17 18diff --git a/src/global.h b/src/global.h 19index 49570ef1..1c247488 100644 20--- a/src/global.h 21+++ b/src/global.h 22@@ -190,4 +190,16 @@ roundup_64(unsigned long long x, unsigned int y) 23 return rounddown_64(x + y - 1, y); 24 } 25 26+#ifndef FTW_ACTIONRETVAL 27+#define FTW_ACTIONRETVAL 16 28+#endif 29+ 30+#ifndef FTW_CONTINUE 31+#define FTW_CONTINUE 0 32+#endif 33+ 34+#ifndef FTW_STOP 35+#define FTW_STOP 1 36+#endif 37+ 38 #endif /* GLOBAL_H */ 39-- 402.42.1 41 42