]> Savannah Git Hosting - gnulib.git/commitdiff
fseeko: Fix potentially wrong override.
authorBruno Haible <bruno@clisp.org>
Thu, 14 Nov 2024 03:51:23 +0000 (04:51 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 1 Dec 2024 06:37:22 +0000 (07:37 +0100)
* m4/fseeko.m4 (gl_PREREQ_FSEEKO): Define the C macro HAVE_FSEEKO.

ChangeLog
m4/fseeko.m4

index 5f9611e0fe45fe013fcaaa82670e737867a1c550..3630765ff241bd28495cdcff4f0e373c42ee19d0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-11-14  Bruno Haible  <bruno@clisp.org>
+
+       fseeko: Fix potentially wrong override.
+       * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Define the C macro HAVE_FSEEKO.
+
 2024-11-14  Bruno Haible  <bruno@clisp.org>
 
        ftello: Fix override on mingw and 32-bit Solaris OpenIndiana.
index 5682a1f27f3b60b0d9c0b4b408fe1019d0f0220b..61e27f87c2d7db8fdf1b5af57ad8a243399e1922 100644 (file)
@@ -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,
@@ -69,6 +69,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])