]> 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:56:54 +0000 (07:56 +0100)
* m4/fseeko.m4 (gl_PREREQ_FSEEKO): Define the C macro HAVE_FSEEKO.

ChangeLog
m4/fseeko.m4

index fb26c784e4bddc85ee656fda5c55738b372ddc74..ddfdff3dd34e37f00d077f6dd6327405f4bc2025 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 cf11a9ce049d54b286428651d3b4cc9ab51a5bb2..61919ed04087f5b8f5d6e2d7051507163b8f42ee 100644 (file)
@@ -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])