diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-16 10:08:16 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-16 10:08:16 +0100 |
commit | 1aa2845026710b3f90b56952a7feb6e88d7e5c26 (patch) | |
tree | e8a112f2d161f99872f03c8c742405bce108ec91 /tmux.c | |
parent | dd66ede38beab6ccb9b3848c218421c43499e761 (diff) | |
download | rtmux-1aa2845026710b3f90b56952a7feb6e88d7e5c26.tar.gz rtmux-1aa2845026710b3f90b56952a7feb6e88d7e5c26.tar.bz2 rtmux-1aa2845026710b3f90b56952a7feb6e88d7e5c26.zip |
Check for sys_signame.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |