termux-packages/packages/frobtads/no_asprintf.patch
Leonid Pliushch cded93e316 Revert "frobtads, sl, unrar: disable packages because their license is not accepted by hosting"
This reverts commit d941ce1f79c4a66ac183a3b0b94082d47788a394.
2019-04-12 17:18:14 +03: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