Author: Dharanendiran <dharanendiran@timesys.com>
Date: Wed, 7 Oct 2026 22:47:18 +0530

Error log:
In file included from misc-utils/fincore.c:29:0:
/home/timesys/ubuntu-18.04-64/ubuntu-18_04-64/build/build_armv7l-timesys-linux-uclibcgnueabi/toolchain/include/fts.h:41:3: error: #error "<fts.h> cannot be used with -D_FILE_OFFSET_BITS==64"
 # error "<fts.h> cannot be used with -D_FILE_OFFSET_BITS==64"

---
 config.h.in |  2 ++
 configure   | 25 +++++++++++++++++++------
 2 files changed, 21 insertions(+), 6 deletions(-)

diff --git a/config.h.in b/config.h.in
index cbdbd39..9880206 100644
--- a/config.h.in
+++ b/config.h.in
@@ -192,6 +192,8 @@
 /* Define to 1 if you have the 'fts_open' function. */
 #undef HAVE_FTS_OPEN
 
+#undef HAVE_FTS_H
+
 /* Define to 1 if you have the 'futimens' function. */
 #undef HAVE_FUTIMENS
 
diff --git a/configure b/configure
index d9d6a5c..b469abe 100755
--- a/configure
+++ b/configure
@@ -30557,17 +30557,30 @@ fi
 
 
 have_fts_open=no
+for ac_header in fts.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "fts.h" "ac_cv_header_fts_h" "$ac_includes_default"
+if test "x$ac_cv_header_fts_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_FTS_H 1
+_ACEOF
 
   for ac_func in fts_open
 do :
   ac_fn_c_check_func "$LINENO" "fts_open" "ac_cv_func_fts_open"
-if test "x$ac_cv_func_fts_open" = xyes
-then :
-  printf "%s\n" "#define HAVE_FTS_OPEN 1" >>confdefs.h
+if test "x$ac_cv_func_fts_open" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_FTS_OPEN 1
+_ACEOF
  have_fts_open=yes
-else case e in #(
-  e) have_fts_open=no ;;
-esac
+else
+  have_fts_open=no
+fi
+done
+
+
+else
+  have_fts_open=no
 fi
 
 done
-- 
2.25.1

