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=e93dc05d49f624a0568934430be31a119b9ce2a5;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 e783a82c61..fb26c784e4 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 bda8d6aed0..48810dccfc 100644 --- a/m4/ftello.m4 +++ b/m4/ftello.m4 @@ -1,4 +1,4 @@ -# 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, @@ -156,6 +156,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])