summaryrefslogtreecommitdiff
path: root/sal/osl/unx/backtrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/unx/backtrace.h')
-rwxr-xr-xsal/osl/unx/backtrace.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/sal/osl/unx/backtrace.h b/sal/osl/unx/backtrace.h
index 34308f32f290..a641ccea603a 100755
--- a/sal/osl/unx/backtrace.h
+++ b/sal/osl/unx/backtrace.h
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: backtrace.h,v $
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
* This file is part of OpenOffice.org.
*
@@ -82,3 +82,21 @@ struct frame {
#endif
#endif /* defined LINUX && SPARC */
+
+#if defined (MACOSX)
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* backtrace function with same behaviour as defined in GNU libc */
+
+int backtrace( void **buffer, int max_frames );
+
+void backtrace_symbols_fd( void **buffer, int size, int fd );
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /* defined MACOSX */