Avoid trying to redefine sys_signame on Android (#253)

On Android <signal.h> defines sys_signame, so trying to redefine it
causes the build to fail.
This commit is contained in:
Fredrik Fornwall
2019-12-13 07:06:06 +01:00
committed by Shuanglei Tao
parent b67e382ab8
commit d99193171d

View File

@@ -6,7 +6,7 @@
#include <signal.h>
#include <fcntl.h>
#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",