summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Nagy <robert@openbsd.org>2010-12-13 11:52:51 +0100
committerRobert Nagy <robert@openbsd.org>2010-12-13 11:54:00 +0100
commit886f9a4f76aa6897b8be7486bc3a97a193424ef8 (patch)
treeec91905c0c6bf08d7fa866b8260bdc9da7942248
parentad15cb46fb7b58cafb051e068a49ed4f39eb3728 (diff)
malloc.h is obsolete on BSDs, so use stdlib.h therefeature/helppack
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx
index ac8865493..57e59d312 100644
--- a/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx
@@ -29,7 +29,11 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_bridges.hxx"
+#if defined (FREEBSD) || defined(NETBSD) || defined(OPENBSD)
+#include <stdlib.h>
+#else
#include <malloc.h>
+#endif
#include <com/sun/star/uno/genfunc.hxx>
#include "com/sun/star/uno/RuntimeException.hpp"