From c4fa9cb603494699d4ffbf20f69e88c27b26192a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mats=20Webj=C3=B6rn?= Date: Fri, 30 Sep 2016 13:27:04 +0200 Subject: [PATCH] Enable build on Alpine Linux --- include/spdlog/details/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/os.h b/include/spdlog/details/os.h index 6d27bc39..c7b2f45b 100644 --- a/include/spdlog/details/os.h +++ b/include/spdlog/details/os.h @@ -344,7 +344,7 @@ inline std::string errno_str(int err_num) return "Unkown error"; #elif defined(__FreeBSD__) || defined(__APPLE__) || defined(ANDROID) || \ - ((_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE) // posix version + ((_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE) || !defined(__GLIBC__) // posix version if (strerror_r(err_num, buf, buf_size) == 0) return std::string(buf);