flex: Patch Makefile.in instead of Makefile.am
[termux-packages] / packages / dvtm / vt.c.patch
1 diff -u -r ../dvtm-0.15/vt.c ./vt.c
2 --- ../dvtm-0.15/vt.c 2016-01-09 06:40:56.000000000 -0500
3 +++ ./vt.c 2016-01-21 08:09:47.457953606 -0500
4 @@ -21,7 +21,9 @@
5 #include <ctype.h>
6 #include <errno.h>
7 #include <fcntl.h>
8 +#ifndef __ANDROID__
9 #include <langinfo.h>
10 +#endif
11 #include <limits.h>
12 #include <signal.h>
13 #include <stdio.h>
14 @@ -1309,10 +1311,14 @@
15
16 static void is_utf8_locale(void)
17 {
18 +#ifdef __ANDROID__
19 + is_utf8 = true;
20 +#else
21 const char *cset = nl_langinfo(CODESET);
22 if (!cset)
23 cset = "ANSI_X3.4-1968";
24 is_utf8 = !strcmp(cset, "UTF-8");
25 +#endif
26 }
27
28 static wchar_t get_vt100_graphic(char c)