aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-07-21 13:28:52 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-07-21 13:44:24 +0000
commit21db6a6cdc68a5a8b9561d07d3ef69e11d2a077e (patch)
treef16b180f9d61ec4646887f17a5b320a44f10d324 /meson.build
parentshm: don't set pixman_fmt_without_alpha twice (diff)
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).
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index b9994c11..8a072dcf 100644
--- a/meson.build
+++ b/meson.build
@@ -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()