Markus Mützel wrote: > I found the following in the generated "config.in.h": > > /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ > #undef HAVE_FSEEKO > > That was replaced with the following in the generated "config.h" after > running the configure script: > > /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ > #define HAVE_FSEEKO 1
In my builds, I don't see an HAVE_FSEEKO macro in config.h. Which is not right. This patch fixes it. It doesn't actually change the behaviour of gnulib's fseeko() on any platform I could test. So, on this one we were lucky that it did not lead to an actual bug. 2024-11-14 Bruno Haible <[email protected]> fseeko: Fix potentially wrong override. * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Define the C macro HAVE_FSEEKO. diff --git a/m4/fseeko.m4 b/m4/fseeko.m4 index 7cce2e7229..5bd1bbd2d1 100644 --- a/m4/fseeko.m4 +++ b/m4/fseeko.m4 @@ -1,5 +1,5 @@ # fseeko.m4 -# serial 20 +# 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, @@ -70,6 +70,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])
