From 4fc79b3551b53cb90d83f9a67d13e2abdae0cf7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 11 May 2012 12:25:49 +0100 Subject: [PATCH] try and bodge macosx 10.4 build Change-Id: Ic862cbfcdc1742d905a59862e63742b581752bfe --- icu/icu4c-macosx.patch | 14 ++++++++++++++ icu/makefile.mk | 1 + 2 files changed, 15 insertions(+) create mode 100644 icu/icu4c-macosx.patch diff --git a/icu/icu4c-macosx.patch b/icu/icu4c-macosx.patch new file mode 100644 index 000000000000..d685a5fbc24a --- /dev/null +++ b/icu/icu4c-macosx.patch @@ -0,0 +1,14 @@ +--- misc/icu/source/common/putil.cpp ++++ misc/build/icu/source/common/putil.cpp +@@ -975,6 +975,11 @@ + return result; + } + #endif ++ ++#if U_PLATFORM_IS_DARWIN_BASED ++extern struct tm *localtime_r(const time_t *, struct tm *); ++#endif ++ + U_CAPI const char* U_EXPORT2 + uprv_tzname(int n) + { diff --git a/icu/makefile.mk b/icu/makefile.mk index 0022376a8a0e..0253978dc49a 100644 --- a/icu/makefile.mk +++ b/icu/makefile.mk @@ -52,6 +52,7 @@ PATCH_FILES=\ icu4c-wchar_t.patch \ icu4c-warnings.patch \ icu4c.9313.cygwin.patch \ + icu4c-macosx.patch \ .IF "$(OS)"=="ANDROID" PATCH_FILES+=\