mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Check for sys_signame.
This commit is contained in:
parent
dd66ede38b
commit
1aa2845026
@ -87,6 +87,9 @@ AC_CHECK_HEADERS([ \
|
|||||||
util.h \
|
util.h \
|
||||||
])
|
])
|
||||||
|
|
||||||
|
# Look for sys_signame.
|
||||||
|
AC_SEARCH_LIBS(sys_signame, )
|
||||||
|
|
||||||
# Look for fmod.
|
# Look for fmod.
|
||||||
AC_CHECK_LIB(m, fmod)
|
AC_CHECK_LIB(m, fmod)
|
||||||
|
|
||||||
|
2
tmux.c
2
tmux.c
@ -170,8 +170,10 @@ sig2name(int signo)
|
|||||||
{
|
{
|
||||||
static char s[11];
|
static char s[11];
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_SIGNAME
|
||||||
if (signo > 0 && signo < NSIG)
|
if (signo > 0 && signo < NSIG)
|
||||||
return (sys_signame[signo]);
|
return (sys_signame[signo]);
|
||||||
|
#endif
|
||||||
xsnprintf(s, sizeof s, "%d", signo);
|
xsnprintf(s, sizeof s, "%d", signo);
|
||||||
return (s);
|
return (s);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user