aboutsummaryrefslogtreecommitdiff
path: root/tools/depends
diff options
context:
space:
mode:
Diffstat (limited to 'tools/depends')
-rw-r--r--tools/depends/target/gnutls/Makefile4
-rw-r--r--tools/depends/target/gnutls/android-fpending.patch13
2 files changed, 16 insertions, 1 deletions
diff --git a/tools/depends/target/gnutls/Makefile b/tools/depends/target/gnutls/Makefile
index 25d2ad3e3e..335667d32a 100644
--- a/tools/depends/target/gnutls/Makefile
+++ b/tools/depends/target/gnutls/Makefile
@@ -1,7 +1,8 @@
include ../../Makefile.include GNUTLS-VERSION ../../download-files.include
DEPS = ../../Makefile.include Makefile ../../download-files.include \
add-dl-as-private-lib.patch \
- 03-support-correct-cisdigit.patch
+ 03-support-correct-cisdigit.patch \
+ android-fpending.patch
# disable rpl_malloc and rpl_realloc symbols in glib
# causes linking errors in libmicrohttpd and ffmpeg with missing symbols
@@ -42,6 +43,7 @@ $(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../add-dl-as-private-lib.patch
cd $(PLATFORM); patch -p1 -i ../03-support-correct-cisdigit.patch
+ cd $(PLATFORM); patch -p1 -i ../android-fpending.patch
cd $(PLATFORM); $(AUTORECONF) -vif
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/target/gnutls/android-fpending.patch b/tools/depends/target/gnutls/android-fpending.patch
new file mode 100644
index 0000000000..a16f671908
--- /dev/null
+++ b/tools/depends/target/gnutls/android-fpending.patch
@@ -0,0 +1,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 */