aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cctz/patches/autocheck.patch
blob: 2975295794643439a495e545e473fc73a1bbbaa5 (plain) (blame)
1
2
3
4
5
6
7
--- a/test/time_zone_lookup_test.cc
+++ b/test/time_zone_lookup_test.cc
@@ -1024,3 +1024,3 @@ TEST(MakeTime, LocalTimeLibC) {
   //  3) we have some idea about how mktime() behaves during transitions.
-#if defined(__linux__) && !defined(__ANDROID__)
+#if defined(__linux__) && !defined(__ANDROID__) && defined(CCTZ_TEST_LIBC_LOCALTIME)
   const char* const ep = getenv("TZ");