From cc03e614b22b5695a1bbe0bedebd1bf0cf284bf7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 9 Jul 2021 22:29:55 -0400 Subject: Use thread-safe strerror_r() if available --- src/system.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/system.h') diff --git a/src/system.h b/src/system.h index ff8ec7c0..dbff890a 100644 --- a/src/system.h +++ b/src/system.h @@ -22,6 +22,10 @@ #include #include +/// Write the message for a system error code (like errno) to a buffer +int +serd_system_strerror(int errnum, char* buf, size_t buflen); + /// Allocate a buffer aligned to `alignment` bytes SERD_I_MALLOC_FUNC void* -- cgit v1.2.1