diff options
Diffstat (limited to 'editors/openoffice-2.0-devel/files/patch-transex3+source+xmlparse.cxx')
-rw-r--r-- | editors/openoffice-2.0-devel/files/patch-transex3+source+xmlparse.cxx | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/editors/openoffice-2.0-devel/files/patch-transex3+source+xmlparse.cxx b/editors/openoffice-2.0-devel/files/patch-transex3+source+xmlparse.cxx new file mode 100644 index 000000000000..1e88b4c4dda4 --- /dev/null +++ b/editors/openoffice-2.0-devel/files/patch-transex3+source+xmlparse.cxx @@ -0,0 +1,29 @@ +#iZ XXXX + +FreeBSD doesn't have alloca.h, and +builtin alloca is defined at stdlib.h. + +Index: transex3/source/xmlparse.cxx +=================================================================== +RCS file: /cvs/l10n/transex3/source/xmlparse.cxx,v +retrieving revision 1.2 +diff -u -r1.2 xmlparse.cxx +--- transex3/source/xmlparse.cxx 30 Aug 2004 17:31:58 -0000 1.2 ++++ transex3/source/xmlparse.cxx 3 Oct 2004 08:41:45 -0000 +@@ -64,11 +64,12 @@ + + + #include <stdio.h> +-#ifdef WIN32 +-#include <malloc.h> ++ ++#if defined(SOLARIS) || defined(IRIX) ++ #include <alloca.h> + #else +-#ifndef MACOSX +-#include <alloca.h> ++#if !(defined(MACOSX) || defined(FREEBSD)) ++ #include <malloc.h> + #endif + #endif + |