librhash: Update from 1.3.5 to 1.3.6
[termux-packages] / packages / angband / src-main.c.patch
CommitLineData
d53bcc5c
FF
1diff -u -r ../angband-master/src/main.c ./src/main.c
2--- ../angband-master/src/main.c 2017-06-25 04:10:53.000000000 +0000
3+++ ./src/main.c 2017-07-16 16:38:58.187988465 +0000
4@@ -35,7 +35,9 @@
5 * locale junk
6 */
7 #include "locale.h"
8+#ifndef __ANDROID__
9 #include "langinfo.h"
10+#endif
11
12 /**
13 * Some machines have a "main()" function in their "main-xxx.c" file,
14@@ -466,9 +468,11 @@
15 ANGBAND_SYS = mstr;
16
17 if (setlocale(LC_CTYPE, "")) {
18+#ifndef __ANDROID__
19 /* Require UTF-8 */
20 if (strcmp(nl_langinfo(CODESET), "UTF-8") != 0)
21 quit("Angband requires UTF-8 support");
22+#endif
23 }
24
25 /* Try the modules in the order specified by modules[] */