From a31c45a0b4b17f5d096eed1898c2707ee051cbfc Mon Sep 17 00:00:00 2001 From: Martin Blapp Date: Tue, 2 Apr 2002 23:48:28 +0000 Subject: Upgrade to build 641d. More work is necessary to make the build compile. There are still at least two different gcc bugs in our compiler, one issue has already been found by Alexander Kabaev . He's working on fixing the other. --- .../files/patch-sal+osl+unx+nlsupport.c | 64 +++++++--------------- 1 file changed, 20 insertions(+), 44 deletions(-) (limited to 'editors/openoffice.org-2/files/patch-sal+osl+unx+nlsupport.c') diff --git a/editors/openoffice.org-2/files/patch-sal+osl+unx+nlsupport.c b/editors/openoffice.org-2/files/patch-sal+osl+unx+nlsupport.c index 29b4de4eb78b..807aeacda025 100644 --- a/editors/openoffice.org-2/files/patch-sal+osl+unx+nlsupport.c +++ b/editors/openoffice.org-2/files/patch-sal+osl+unx+nlsupport.c @@ -1,88 +1,64 @@ ---- ../sal/osl/unx/nlsupport.c.orig Sat Mar 9 00:51:17 2002 -+++ ../sal/osl/unx/nlsupport.c Sat Mar 9 01:54:43 2002 -@@ -63,11 +63,17 @@ +--- ../sal/osl/unx/nlsupport.c.orig Sun Mar 17 12:48:42 2002 ++++ ../sal/osl/unx/nlsupport.c Wed Apr 3 00:57:03 2002 +@@ -63,7 +63,7 @@ #include #include --#if defined(LINUX) || defined(SOLARIS) -+#if defined(LINUX) || defined(SOLARIS) || defined(NETBSD) || defined(FREEBSD) +-#if defined(LINUX) || defined(SOLARIS) || defined(IRIX) || defined(NETBSD) ++#if defined(LINUX) || defined(SOLARIS) || defined(IRIX) || defined(NETBSD) || defined(FREEBSD) #include #include -+#if defined(FREEBSD) -+#if OSVERSION > 500000 #include - #endif -+#else -+#include -+#endif -+#endif - - /*****************************************************************************/ - /* typedefs -@@ -242,7 +248,7 @@ +@@ -242,7 +242,7 @@ return NULL; } --#if defined(LINUX) || defined(SOLARIS) -+#if defined(LINUX) || defined(SOLARIS) || defined(NETBSD) || defined(FREEBSD) +-#if defined(LINUX) || defined(SOLARIS) || defined(IRIX) || defined(NETBSD) ++#if defined(LINUX) || defined(SOLARIS) || defined(IRIX) || defined(NETBSD) || defined(FREEBSD) /* * This implementation of osl_getTextEncodingFromLocale maps -@@ -296,7 +302,7 @@ - /* XXX MS-874 is an extension to tis620, so this is not - * really equivalent */ +@@ -314,7 +314,7 @@ + { "sjis", RTL_TEXTENCODING_SHIFT_JIS }, /* Japan */ + }; --#elif defined(LINUX) +-#elif defined(LINUX) || defined(NETBSD) +#elif defined(LINUX) || defined(NETBSD) || defined(FREEBSD) const _pair _nl_language_list[] = { { "ANSI_X3.110-1983", RTL_TEXTENCODING_DONTKNOW }, /* ISO-IR-99 NAPLPS */ -@@ -477,7 +483,7 @@ +@@ -495,7 +495,7 @@ { "WIN-SAMI-2", RTL_TEXTENCODING_DONTKNOW } /* WS2 */ }; --#endif /* ifdef LINUX */ +-#endif /* ifdef LINUX || NETBSD */ +#endif /* ifdef LINUX || NETBSD || FREEBSD */ static pthread_mutex_t aLocalMutex = PTHREAD_MUTEX_INITIALIZER; -@@ -516,7 +522,13 @@ - } - - /* get the charset as indicated by the LC_CTYPE locale */ -+#if defined(NETBSD) || defined(FREEBSD) -+#if !defined(CODESET) -+ codeset = NULL; -+#else - codeset = nl_langinfo( CODESET ); -+#endif -+#endif - - if ( codeset != NULL ) - { -@@ -595,7 +607,7 @@ +@@ -617,7 +617,7 @@ return ret; } --#elif defined(MACOSX) /* ifdef LINUX || SOLARIS */ +-#elif defined(MACOSX) /* ifdef LINUX || SOLARIS || NETBSD */ +#elif defined(MACOSX) /* ifdef LINUX || SOLARIS || NETBSD || FREEBSD */ /* * FIXME: the MacOS X implemetation is missing -@@ -628,7 +640,7 @@ +@@ -650,7 +650,7 @@ return 0; } --#else /* ifdef LINUX || SOLARIS || MACOSX */ +-#else /* ifdef LINUX || SOLARIS || MACOSX || NETBSD */ +#else /* ifdef LINUX || SOLARIS || MACOSX || NETBSD || FREEBSD */ /* * This implementation of osl_getTextEncodingFromLocale maps -@@ -844,6 +856,6 @@ +@@ -884,6 +884,6 @@ return 0; } --#endif /* ifdef LINUX || SOLARIS || MACOSX*/ +-#endif /* ifdef LINUX || SOLARIS || MACOSX || NETBSD */ +#endif /* ifdef LINUX || SOLARIS || MACOSX || NETBSD || FREEBSD */ -- cgit v1.2.3