mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-02-10 12:04:31 +01:00
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:
committed by
Shuanglei Tao
parent
b67e382ab8
commit
d99193171d
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user