python: Cleanup build
[termux-packages] / packages / dpkg / strsignal.c.patch
CommitLineData
59f0d218
FF
1strsignal.c is only compiled for the tests, but fails with:
2
3strsignal.c:66:31: error: invalid application of 'sizeof' to incomplete type 'const char * const[]'
4 if (s > 0 && s < (int)(sizeof(sys_siglist) / sizeof(sys_siglist[0])))
5diff -u -r ../dpkg-1.17.11/lib/compat/strsignal.c ./lib/compat/strsignal.c
6--- ../dpkg-1.17.11/lib/compat/strsignal.c 2014-08-09 22:03:58.000000000 +0200
7+++ ./lib/compat/strsignal.c 2014-08-13 20:57:32.998986392 +0200
8@@ -63,9 +63,10 @@
9 {
10 static char buf[100];
11
12+#ifndef __ANDROID__
13 if (s > 0 && s < (int)(sizeof(sys_siglist) / sizeof(sys_siglist[0])))
14 return sys_siglist[s];
15-
16+#endif
17 sprintf(buf, _("Unknown signal %d"), s);
18
19 return buf;