]> 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>
Thu, 14 Nov 2024 03:53:56 +0000 (04:53 +0100)
* m4/fseeko.m4 (gl_PREREQ_FSEEKO): Define the C macro HAVE_FSEEKO.

ChangeLog
m4/fseeko.m4

index c8fba50bc16cd5bf71d79633f7208814ec77519b..2cb13075e1723002efd4066fd118b4b97769cef0 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 7cce2e7229928fe94b50f0359acd4a0aa4f1174c..5bd1bbd2d108d49619c7a4a53ecebffc3f4c6349 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,
@@ -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])