mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 14:35:57 +01:00
build: define _GNU_SOURCE for PipeWire 0.3.49
PipeWire 0.3.49 added locale aware string functions to the spa library,
which are only available defining _GNU_SOURCE [1]. This will be fixed in
the next PipeWire release [2]
[1] 5f4d031db0
[2] https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/1206/
This commit is contained in:
parent
c34d09877c
commit
699e6ecf77
1 changed files with 6 additions and 0 deletions
|
@ -34,6 +34,12 @@ if (not cc.has_function('timerfd_create', prefix: '#include <sys/timerfd.h>') or
|
|||
epoll = dependency('epoll-shim')
|
||||
endif
|
||||
|
||||
if pipewire.version() == '0.3.49'
|
||||
add_project_arguments(cc.get_supported_arguments([
|
||||
'-D_GNU_SOURCE',
|
||||
]), language: 'c')
|
||||
endif
|
||||
|
||||
if get_option('sd-bus-provider') == 'auto'
|
||||
assert(get_option('auto_features').auto(), 'sd-bus-provider must not be set to auto since auto_features != auto')
|
||||
sdbus = dependency('libsystemd',
|
||||
|
|
Loading…
Reference in a new issue