]> granicus.if.org Git - vnstat/commitdiff
Apple has extern long timezone in time.h
authorTeemu Toivola <git@humdi.net>
Sat, 10 Mar 2018 16:19:52 +0000 (18:19 +0200)
committerTeemu Toivola <git@humdi.net>
Sat, 10 Mar 2018 16:19:52 +0000 (18:19 +0200)
src/common.c

index 210ced742607302eab0bfed1b58f66cfd3b32dea..e090e626a26e122766abf47fe86bdcffedcbd598 100644 (file)
@@ -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