From d99193171daccbbd803256a34213e05558dd3e88 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Fri, 13 Dec 2019 07:06:06 +0100 Subject: [PATCH] Avoid trying to redefine sys_signame on Android (#253) On Android defines sys_signame, so trying to redefine it causes the build to fail. --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.43.4