From fa17725815d4804b0c6797a73fb1298ffa04bddf Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 14 Nov 2024 04:42:45 +0100 Subject: [PATCH] ftello: Fix override on mingw and 32-bit Solaris OpenIndiana. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported by Markus Mützel in . * m4/ftello.m4 (gl_PREREQ_FTELLO): Define the C macro HAVE_FTELLO. --- ChangeLog | 7 +++++++ m4/ftello.m4 | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6c524e98d6..5f9611e0fe 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 0eb8fa0da4..6c985f338d 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, @@ -157,6 +157,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]) -- 2.39.5