mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
utils: check for strndupa defined
The meson check does not completely work in detecting strndupa so do an extra check before we define it.
This commit is contained in:
parent
2ae840bc12
commit
779579b349
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ pw_strip(char *str, const char *whitespace);
|
|||
|
||||
#if defined(HAVE_STRNDUPA)
|
||||
#include <string.h>
|
||||
#else
|
||||
#elif !defined(strndupa)
|
||||
# define strndupa(s, n) \
|
||||
({ \
|
||||
const char *__old = (s); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue