]> 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>
Thu, 14 Nov 2024 03:48:07 +0000 (04:48 +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 e2f55b9ad809c9063120e6e8c8c0e9a6269caeb0..c8fba50bc16cd5bf71d79633f7208814ec77519b 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 2bdb63148fcc5859a26a90919afa44a97ed3f254..8bd5d0083bd5355b3941d67171fbeb6b3a5c7eb3 100644 (file)
@@ -1,5 +1,5 @@
 # ftello.m4
-# serial 16
+# 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,
@@ -158,6 +158,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])