mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-27 01:40:16 -05:00
fdm: when logging signal related errors, include the signal name
Since sigabbrev_np() is GNU only, provide a fallback function that returns "SIG<signo>" when sigabbrev_np() doesn't exist (for example, on FreeBSD).
This commit is contained in:
parent
7ab43ebf74
commit
21db6a6cdc
2 changed files with 30 additions and 6 deletions
|
|
@ -25,6 +25,12 @@ if cc.has_function('execvpe',
|
|||
add_project_arguments('-DEXECVPE', language: 'c')
|
||||
endif
|
||||
|
||||
if cc.has_function('sigabbrev_np',
|
||||
args: ['-D_GNU_SOURCE'],
|
||||
prefix: '#include <string.h>')
|
||||
add_project_arguments('-DSIGABBREV_NP', language: 'c')
|
||||
endif
|
||||
|
||||
utmp_backend = get_option('utmp-backend')
|
||||
if utmp_backend == 'auto'
|
||||
host_os = host_machine.system()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue