From 1aa2845026710b3f90b56952a7feb6e88d7e5c26 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 16 Apr 2020 10:08:16 +0100 Subject: Check for sys_signame. --- tmux.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tmux.c') diff --git a/tmux.c b/tmux.c index f5cd4343..e16642fd 100644 --- a/tmux.c +++ b/tmux.c @@ -170,8 +170,10 @@ sig2name(int signo) { static char s[11]; +#ifdef HAVE_SYS_SIGNAME if (signo > 0 && signo < NSIG) return (sys_signame[signo]); +#endif xsnprintf(s, sizeof s, "%d", signo); return (s); } -- cgit