fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / icu / icu4c-macosx.patch
blob8f9f9a75507efe0a3ac655c8574000a441b0de23
1 --- misc/icu/source/common/putil.cpp
2 +++ misc/build/icu/source/common/putil.cpp
3 @@ -1111,8 +1111,16 @@
4 static const time_t decemberSolstice=1198332540; /*2007-12-22 06:09 UT*/
6 /* This probing will tell us when daylight savings occurs. */
7 +#if U_PLATFORM_IS_DARWIN_BASED
8 + struct tm *tmp;
9 + tmp = localtime(&juneSolstice);
10 + juneSol = *tmp;
11 + tmp = localtime(&decemberSolstice);
12 + decemberSol = *tmp;
13 +#else
14 localtime_r(&juneSolstice, &juneSol);
15 localtime_r(&decemberSolstice, &decemberSol);
16 +#endif
17 if(decemberSol.tm_isdst > 0) {
18 daylightType = U_DAYLIGHT_DECEMBER;
19 } else if(juneSol.tm_isdst > 0) {