aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/gnutls/android-fpending.patch
blob: a16f6719089ce5e6e0838beaa0fc40c54b12c406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/src/gl/fpending.c
+++ b/src/gl/fpending.c
@@ -39,7 +39,9 @@
 #if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1
   /* GNU libc, BeOS, Haiku, Linux libc5 */
   return fp->_IO_write_ptr - fp->_IO_write_base;
-#elif defined __sferror || defined __DragonFly__ || defined __ANDROID__
+#elif defined __ANDROID__
+  return fp_->_p - fp_->_bf._base;
+#elif defined __sferror || defined __DragonFly__
   /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin < 1.7.34, Minix 3, Android */
   return fp->_p - fp->_bf._base;
 #elif defined __EMX__                /* emx+gcc */