+2024-11-14 Bruno Haible <bruno@clisp.org>
+
+ ftello: Fix override on mingw and 32-bit Solaris OpenIndiana.
+ Reported by Markus Mützel <markus.muetzel@gmx.de> in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00108.html>.
+ * m4/ftello.m4 (gl_PREREQ_FTELLO): Define the C macro HAVE_FTELLO.
+
2024-11-14 Bruno Haible <bruno@clisp.org>
ftruncate: Accept lengths > 2 GiB on 32-bit mingw.
-# ftello.m4 serial 16
+# ftello.m4 serial 17
dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
# Prerequisites of lib/ftello.c.
AC_DEFUN([gl_PREREQ_FTELLO],
[
+ if test $gl_cv_func_ftello != no; then
+ AC_DEFINE([HAVE_FTELLO], [1],
+ [Define to 1 if the system has the ftello function.])
+ fi
dnl Native Windows has the function _ftelli64. mingw hides it, but mingw64
dnl makes it usable again.
AC_CHECK_FUNCS([_ftelli64])