mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
meson.build: Check strndupa using has_header_symbol
It's a macro here, which has_function misses, at least from meson 0.57.1.
This commit is contained in:
parent
2ae6851698
commit
9cdf3d1a0b
1 changed files with 1 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ if cc.has_type('ptrdiff_t', prefix : '#include <stddef.h>')
|
|||
cdata.set('HAVE_PTRDIFF_T', 1)
|
||||
endif
|
||||
|
||||
if cc.has_function('strndupa', prefix : '#include <string.h>', args : [ '-D_GNU_SOURCE' ])
|
||||
if cc.has_header_symbol('string.h', 'strndupa', args : [ '-D_GNU_SOURCE' ])
|
||||
cdata.set('HAVE_STRNDUPA', 1)
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue