From: Bruno Haible Date: Thu, 14 Nov 2024 03:42:45 +0000 (+0100) Subject: ftello: Fix override on mingw and 32-bit Solaris OpenIndiana. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=5ff01b5b69f7af138f1da25586f575ca03de6b42;p=gnulib.git ftello: Fix override on mingw and 32-bit Solaris OpenIndiana. Reported by Markus Mützel in . * m4/ftello.m4 (gl_PREREQ_FTELLO): Define the C macro HAVE_FTELLO. --- diff --git a/ChangeLog b/ChangeLog index e2f55b9ad8..c8fba50bc1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2024-11-14 Bruno Haible + + ftello: Fix override on mingw and 32-bit Solaris OpenIndiana. + Reported by Markus Mützel in + . + * m4/ftello.m4 (gl_PREREQ_FTELLO): Define the C macro HAVE_FTELLO. + 2024-11-14 Bruno Haible ftruncate: Accept lengths > 2 GiB on 32-bit mingw. diff --git a/m4/ftello.m4 b/m4/ftello.m4 index 2bdb63148f..8bd5d0083b 100644 --- a/m4/ftello.m4 +++ b/m4/ftello.m4 @@ -1,5 +1,5 @@ # ftello.m4 -# serial 16 +# 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, @@ -158,6 +158,10 @@ main (void) # 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])