summaryrefslogtreecommitdiffstats
path: root/sal/osl/unx/backtrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/unx/backtrace.h')
-rw-r--r--[-rwxr-xr-x]sal/osl/unx/backtrace.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sal/osl/unx/backtrace.h b/sal/osl/unx/backtrace.h
index 1ca2ae84c4a0..79fb58025e2e 100755..100644
--- a/sal/osl/unx/backtrace.h
+++ b/sal/osl/unx/backtrace.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -26,7 +27,8 @@
************************************************************************/
-#if defined (SOLARIS) || (FREEBSD)
+#if defined (SOLARIS) || defined (FREEBSD) || defined (NETBSD) || \
+ defined (OPENBSD) || defined (DRAGONFLY)
#ifdef __cplusplus
extern "C" {
@@ -39,7 +41,8 @@ int backtrace( void **buffer, int max_frames );
void backtrace_symbols_fd( void **buffer, int size, int fd );
/* no frame.h on FreeBSD */
-#if defined FREEBSD
+#if defined (FREEBSD) || defined (NETBSD) || defined (OPENBSD) || \
+ defined (DRAGONFLY)
struct frame {
long arg0[8];
long arg1[6];
@@ -53,7 +56,7 @@ struct frame {
} /* extern "C" */
#endif
-#endif /* defined SOLARIS || FREEBSD */
+#endif /* defined SOLARIS || FREEBSD || NETBSD || OPENBSD */
#if defined (LINUX) && defined (SPARC)
#ifdef __cplusplus
@@ -97,3 +100,5 @@ void backtrace_symbols_fd( void **buffer, int size, int fd );
#endif
#endif /* defined MACOSX */
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */