termux-packages/disabled-packages/frobtads/no_asprintf.patch
Leonid Pliushch 53a9ab7a8f frobtads, sl, unrar: disable packages because their license is not accepted by hosting
Bintray denied license requests for these packages, therefore we cannot provide
them via main repository.
2019-03-29 03:42:47 +02:00

15 lines
587 B
Diff

diff -u -r ../frobtads-1.2.3/src/osfrobtads.h ./src/osfrobtads.h
--- ../frobtads-1.2.3/src/osfrobtads.h 2013-05-17 21:46:51.000000000 +0200
+++ ./src/osfrobtads.h 2014-02-24 17:38:59.000000000 +0100
@@ -428,8 +428,10 @@
* that aren't available on all Unix variants. Eventually these will
* need to be replaced with more thorough versions that encompass
* other Unix variants. */
+#ifndef __ANDROID__
int asprintf(char **strp, const char *fmt, ...);
int vasprintf(char **strp, const char *fmt, va_list ap);
+#endif
#define os_asprintf asprintf
#define os_vasprintf vasprintf