From: Bruno Haible <bruno@clisp.org>
Date: Thu, 14 Nov 2024 03:51:23 +0000 (+0100)
Subject: fseeko: Fix potentially wrong override.
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=86b8cfeb4b115becd6572781a4ca3f03f18ba656;p=gnulib.git

fseeko: Fix potentially wrong override.

* m4/fseeko.m4 (gl_PREREQ_FSEEKO): Define the C macro HAVE_FSEEKO.
---

diff --git a/ChangeLog b/ChangeLog
index 5f9611e0fe..3630765ff2 100644
--- 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.
diff --git a/m4/fseeko.m4 b/m4/fseeko.m4
index 5682a1f27f..61e27f87c2 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,
@@ -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])