termux-packages/packages/telegram-cli/tgl-generate.c.patch
Leonid Pliushch 625f2aab3c
move some packages from unstable repo
Everything moved has been manually compiled and submitted to the main
apt repo at packages.termux.org.

%ci:no-build
2021-10-24 18:31:15 +00:00

23 lines
617 B
Diff

diff --git a/generate.c b/generate.c
index 83d1664..cc96875 100644
--- a/tgl/generate.c
+++ b/tgl/generate.c
@@ -26,7 +26,7 @@
#include "config.h"
#include <stdio.h>
#include <signal.h>
-#ifdef HAVE_EXECINFO_H
+#if defined(HAVE_EXECINFO_H) && !defined(__ANDROID__)
#include <execinfo.h>
#endif
#include <unistd.h>
@@ -2954,7 +2954,7 @@ void hexdump (int *in_ptr, int *in_end) {
printf ("\n");
}*/
-#ifdef HAVE_EXECINFO_H
+#if defined(HAVE_EXECINFO_H) && !defined(__ANDROID__)
void print_backtrace (void) {
void *buffer[255];
const int calls = backtrace (buffer, sizeof (buffer) / sizeof (void *));