From: Fredrik Fornwall Date: Fri, 13 Dec 2019 06:06:06 +0000 (+0100) Subject: Avoid trying to redefine sys_signame on Android (#253) X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=d99193171daccbbd803256a34213e05558dd3e88;p=ttyd.git Avoid trying to redefine sys_signame on Android (#253) On Android defines sys_signame, so trying to redefine it causes the build to fail. --- diff --git a/src/utils.c b/src/utils.c index bcb92bf..4853456 100644 --- a/src/utils.c +++ b/src/utils.c @@ -6,7 +6,7 @@ #include #include -#ifdef __linux__ +#if defined(__linux__) && !defined(__ANDROID__) // https://github.com/karelzak/util-linux/blob/master/misc-utils/kill.c const char *sys_signame[NSIG] = { "zero", "HUP", "INT", "QUIT", "ILL", "TRAP", "ABRT", "UNUSED",