summaryrefslogtreecommitdiff
path: root/editors/openoffice.org-2/files/patch-sal+osl+unx+nlsupport.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/openoffice.org-2/files/patch-sal+osl+unx+nlsupport.c')
-rw-r--r--editors/openoffice.org-2/files/patch-sal+osl+unx+nlsupport.c29
1 files changed, 29 insertions, 0 deletions
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
new file mode 100644
index 000000000000..cd0c56d2c984
--- /dev/null
+++ b/editors/openoffice.org-2/files/patch-sal+osl+unx+nlsupport.c
@@ -0,0 +1,29 @@
+--- ../sal/osl/unx/nlsupport.c Wed Feb 27 00:54:01 2002
++++ ../sal/osl/unx/nlsupport.c Wed Feb 27 15:00:58 2002
+@@ -63,7 +63,7 @@
+ #include <osl/diagnose.h>
+ #include <osl/process.h>
+
+-#if defined(LINUX) || defined(SOLARIS)
++#if defined(LINUX) || defined(SOLARIS) || defined(FREEBSD)
+ #include <pthread.h>
+ #include <locale.h>
+ #include <langinfo.h>
+@@ -841,7 +841,7 @@
+ snprintf(env_buf, sizeof(env_buf), "LC_CTYPE=%s", locale_buf);
+ env_buf[sizeof(env_buf)] = '\0';
+ putenv(env_buf);
+-#elif defined( FREEBAD ) || defined( NETBSD )
++#elif defined( FREEBSD ) || defined( NETBSD )
+ setenv("LC_CTYPE", locale_buf, 1 );
+ #else
+ setenv( "LC_CTYPE", locale_buf );
+@@ -853,7 +853,7 @@
+ snprintf(env_buf, sizeof(env_buf), "LANG=%s", locale_buf);
+ env_buf[sizeof(env_buf)] = '\0';
+ putenv(env_buf);
+-#elif defined( FREEBAD ) || defined( NETBSD )
++#elif defined( FREEBSD ) || defined( NETBSD )
+ setenv("LC_CTYPE", locale_buf, 1 );
+ #else
+ setenv( "LANG", locale_buf );