]> Savannah Git Hosting - gnulib.git/commitdiff
fpending: Fix compilation error with NDK ≥ r14b and Android API < 23.
authorBruno Haible <bruno@clisp.org>
Sun, 15 Jan 2023 10:10:09 +0000 (11:10 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 20 Jan 2023 10:18:52 +0000 (11:18 +0100)
Report and patch by Po Lu <luangruo@yahoo.com>.

* lib/fpending.c (__fpending) [__ANDROID__]: Use the fp_ macro.

ChangeLog
lib/fpending.c

index c4257fe81014b265602dec9dddbcd3e296bdb4ac..7973ab46af2f47ab52ddccdc4dbed3755b0ae077 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-01-15  Bruno Haible  <bruno@clisp.org>
+
+       fpending: Fix compilation error with NDK ≥ r14b and Android API < 23.
+       Report and patch by Po Lu <luangruo@yahoo.com>.
+       * lib/fpending.c (__fpending) [__ANDROID__]: Use the fp_ macro.
+
 2023-01-14  Paul Eggert  <eggert@cs.ucla.edu>
 
        test-framework-sh: work around AIX 7.2 diff bugs
index afa840b85124f7f342f8f3473836d9160b3be97b..e57155e586e8a772e858799f9b5949aaa68620bc 100644 (file)
@@ -41,7 +41,7 @@ __fpending (FILE *fp)
   return fp->_IO_write_ptr - fp->_IO_write_base;
 #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__
   /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin < 1.7.34, Minix 3, Android */
-  return fp->_p - fp->_bf._base;
+  return fp_->_p - fp_->_bf._base;
 #elif defined __EMX__                /* emx+gcc */
   return fp->_ptr - fp->_buffer;
 #elif defined __minix                /* Minix */