From 592fc568f332e48a1685d8cebc32a20c5776d265 Mon Sep 17 00:00:00 2001 From: Teemu Toivola Date: Sat, 10 Mar 2018 18:19:52 +0200 Subject: [PATCH] Apple has extern long timezone in time.h --- src/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.c b/src/common.c index 210ced7..e090e62 100644 --- a/src/common.c +++ b/src/common.c @@ -192,8 +192,8 @@ int isleapyear(int year) time_t mosecs(time_t month, time_t updated) { struct tm d; -#if defined(_SVID_SOURCE) || defined(_XOPEN_SOURCE) || defined(__linux__) - /* extern long timezone; */ +#if defined(_SVID_SOURCE) || defined(_XOPEN_SOURCE) || defined(__APPLE__) || defined(__linux__) + /* extern long timezone; from time.h */ #else int timezone = 0; #endif -- 2.40.0