From 3a54a6d9554f3609e2f01a12914b99064d305b6b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 14 Nov 2024 04:51:23 +0100 Subject: [PATCH] fseeko: Fix potentially wrong override. * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Define the C macro HAVE_FSEEKO. --- ChangeLog | 5 +++++ m4/fseeko.m4 | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fb26c784e4..ddfdff3dd3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-11-14 Bruno Haible + + fseeko: Fix potentially wrong override. + * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Define the C macro HAVE_FSEEKO. + 2024-11-14 Bruno Haible ftello: Fix override on mingw and 32-bit Solaris OpenIndiana. diff --git a/m4/fseeko.m4 b/m4/fseeko.m4 index cf11a9ce04..61919ed040 100644 --- a/m4/fseeko.m4 +++ b/m4/fseeko.m4 @@ -1,4 +1,4 @@ -# fseeko.m4 serial 20 +# fseeko.m4 serial 21 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, @@ -68,6 +68,10 @@ AC_DEFUN([gl_STDIN_LARGE_OFFSET], # Prerequisites of lib/fseeko.c. AC_DEFUN([gl_PREREQ_FSEEKO], [ + if test $gl_cv_func_fseeko != no; then + AC_DEFINE([HAVE_FSEEKO], [1], + [Define to 1 if the system has the fseeko function.]) + fi dnl Native Windows has the function _fseeki64. mingw hides it in some dnl circumstances, but mingw64 makes it usable again. AC_CHECK_FUNCS([_fseeki64]) -- 2.39.5