termux-packages/packages/tmate/tmate-debug.c.patch
2016-08-26 17:46:30 -04:00

29 lines
548 B
Diff

diff -u -r ../tmate-2.2.1/tmate-debug.c ./tmate-debug.c
--- ../tmate-2.2.1/tmate-debug.c 2016-03-28 23:30:07.000000000 -0400
+++ ./tmate-debug.c 2016-08-26 16:42:38.475688775 -0400
@@ -1,4 +1,6 @@
+#ifndef __ANDROID__
#include <execinfo.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <regex.h>
@@ -55,6 +57,9 @@
void tmate_print_stack_trace(void)
{
+#ifdef __ANDROID__
+ tmate_info ("Not supported on Android");
+#else
void *array[20];
size_t size;
char **strings;
@@ -73,6 +78,7 @@
}
free (strings);
+#endif
}