diff options
author | David Robillard <d@drobilla.net> | 2021-07-09 22:29:55 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | 6ea89ed78d344d01de4566ae7cc690c0cfe5673e (patch) | |
tree | 98f856a191ab2d7609f249aeb0fa3b3e1c1e340e /meson.build | |
parent | 1a95f759fe3d642e8520e41e691e63f22a2f3b99 (diff) | |
download | serd-6ea89ed78d344d01de4566ae7cc690c0cfe5673e.tar.gz serd-6ea89ed78d344d01de4566ae7cc690c0cfe5673e.tar.bz2 serd-6ea89ed78d344d01de4566ae7cc690c0cfe5673e.zip |
Use thread-safe strerror_r() if available
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 2dc91aa7..fa183942 100644 --- a/meson.build +++ b/meson.build @@ -87,6 +87,10 @@ else 'stdlib.h', 'void* mem=NULL; posix_memalign(&mem, 8U, 8U);', ], + 'strerror_r': [ + 'string.h', + 'char buf[128]; return strerror_r(0, &buf, sizeof(buf));', + ], } # Define HAVE_SOMETHING symbols for all detected features |