]> granicus.if.org Git - vnstat/commitdiff
be less strict with defines when using extern long timezone, didn't work in Fedora...
authorTeemu Toivola <git@humdi.net>
Fri, 23 Oct 2015 18:29:50 +0000 (21:29 +0300)
committerTeemu Toivola <git@humdi.net>
Fri, 23 Oct 2015 18:29:50 +0000 (21:29 +0300)
src/common.c
tests/common_tests.c

index b7adfcea53a43b805a6a04304cf848a19ede877f..9a2c6597b24c74b01225d07fac14082fa6c60e8a 100644 (file)
@@ -152,7 +152,7 @@ int dmonth(int month)
 uint32_t mosecs(void)
 {
        struct tm d;
-#if defined(_SVID_SOURCE) || defined(_XOPEN_SOURCE)
+#if defined(_SVID_SOURCE) || defined(_XOPEN_SOURCE) || defined(__linux__)
        extern long timezone;
 #else
        int timezone = 0;
index e5b1e6782ea1482521264fc3044a7f91817a97e0..6226d55c5a5ec3ec09f0b36362e6c2b29eba1635 100644 (file)
@@ -65,7 +65,7 @@ END_TEST
 
 START_TEST(mosecs_does_not_change_tz)
 {
-#if defined(_SVID_SOURCE) || defined(_XOPEN_SOURCE)
+#if defined(_SVID_SOURCE) || defined(_XOPEN_SOURCE) || defined(__linux__)
        extern long timezone;
 #else
        long timezone = 0;