# HG changeset patch
# User t_mrc-ct@users.sourceforge.jp
# Date 1376401338 -32400
# Branch GECKO3110_2014082819_RELBRANCH
# Node ID ea93f881f3e8a3a563b99e13d468950b5aa7b80a
# Parent  499ed586479372b9703315ba751d65c20729f871
minimal change to build (with v23 fix)

diff --git a/mailnews/compose/src/nsMsgAppleDouble.h b/mailnews/compose/src/nsMsgAppleDouble.h
--- a/mailnews/compose/src/nsMsgAppleDouble.h
+++ b/mailnews/compose/src/nsMsgAppleDouble.h
@@ -46,16 +46,25 @@
 { 
 	kInit, 
 	kDoingHeaderPortion, 
 	kDoneHeaderPortion, 
 	kDoingDataPortion, 
 	kDoneDataPortion 
 };
 
+/* FSIORefNum not named before 10.5 */
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 1050
+#if __LP64__
+typedef int	FSIORefNum;
+#else
+typedef SInt16	FSIORefNum;
+#endif /* __LP64__ */
+#endif /* MAC_OS_X_VERSION_MAX_ALLOWED < 1050 */
+
 typedef struct _appledouble_encode_object 
 {
     char    fname[256];
     FSIORefNum fileId;				/* the id for the open file (data/resource fork) */
 
 	int 	state;
 	int		text_file_type;		/* if the file has a text file type with it.	*/
 	char	*boundary;			/* the boundary string.							*/
diff --git a/mailnews/import/eudora/src/nsEudoraMac.cpp b/mailnews/import/eudora/src/nsEudoraMac.cpp
--- a/mailnews/import/eudora/src/nsEudoraMac.cpp
+++ b/mailnews/import/eudora/src/nsEudoraMac.cpp
@@ -489,16 +489,21 @@
   if (CreateTocFromResource(pMailFile, ppTOCFile))
   {
     *pDeleteToc = true;
     return NS_OK;
   }
   return NS_ERROR_FAILURE;
 }
 
+// ResourceIndex not named before 10.5
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 1050
+typedef SInt16	ResourceIndex;
+#endif /* MAC_OS_X_VERSION_MAX_ALLOWED < 1050 */
+
 // GetIndString isn't supported on 64-bit Mac OS X
 // This code is emulation for GetIndString.
 static StringPtr GetStringFromHandle(Handle aResource,
                                      ResourceIndex aId)
 {
   if (!aResource)
     return nullptr;
 
