]> Savannah Git Hosting - gnulib.git/commitdiff
ftello: Fix override on mingw and 32-bit Solaris OpenIndiana.
authorBruno Haible <bruno@clisp.org>
Thu, 14 Nov 2024 03:42:45 +0000 (04:42 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 1 Dec 2024 06:56:17 +0000 (07:56 +0100)
Reported by Markus Mützel <markus.muetzel@gmx.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00108.html>.

* m4/ftello.m4 (gl_PREREQ_FTELLO): Define the C macro HAVE_FTELLO.

ChangeLog
m4/ftello.m4

index e783a82c61c00aaae5b54f3b3d4bff7dc9903150..fb26c784e4bddc85ee656fda5c55738b372ddc74 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-11-14  Bruno Haible  <bruno@clisp.org>
+
+       ftello: Fix override on mingw and 32-bit Solaris OpenIndiana.
+       Reported by Markus Mützel <markus.muetzel@gmx.de> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00108.html>.
+       * m4/ftello.m4 (gl_PREREQ_FTELLO): Define the C macro HAVE_FTELLO.
+
 2024-11-14  Bruno Haible  <bruno@clisp.org>
 
        ftruncate: Accept lengths > 2 GiB on 32-bit mingw.
index bda8d6aed0988c348e8ba5d48af2f04ee78afff2..48810dccfc39c6dc35652e45b90d279573daf515 100644 (file)
@@ -1,4 +1,4 @@
-# ftello.m4 serial 16
+# ftello.m4 serial 17
 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,
@@ -156,6 +156,10 @@ main (void)
 # Prerequisites of lib/ftello.c.
 AC_DEFUN([gl_PREREQ_FTELLO],
 [
+  if test $gl_cv_func_ftello != no; then
+    AC_DEFINE([HAVE_FTELLO], [1],
+      [Define to 1 if the system has the ftello function.])
+  fi
   dnl Native Windows has the function _ftelli64. mingw hides it, but mingw64
   dnl makes it usable again.
   AC_CHECK_FUNCS([_ftelli64])