From ff3e6c7248a0bfb1d44e72fd0f822320178263bc Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 8 Nov 2019 14:08:31 +0200 Subject: [PATCH] Fix issue #1306 --- include/spdlog/details/os-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/os-inl.h b/include/spdlog/details/os-inl.h index 3ec87da9..15e7f2df 100644 --- a/include/spdlog/details/os-inl.h +++ b/include/spdlog/details/os-inl.h @@ -277,7 +277,7 @@ SPDLOG_INLINE int utc_minutes_offset(const std::tm &tm) return offset; #else -#if defined(sun) || defined(__sun) || defined(_AIX) +#if defined(sun) || defined(__sun) || defined(_AIX) || (!defined(_BSD_SOURCE) && !defined(_GNU_SOURCE)) // 'tm_gmtoff' field is BSD extension and it's missing on SunOS/Solaris struct helper {