aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/fallback.cpp
diff options
context:
space:
mode:
authorGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-12-17 20:35:34 +0800
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-12-17 20:36:33 +0800
commit71435121983cba54f15aff819929faedbae1ac8a (patch)
treed5df7b07fbb7545d04eaebd99efd4a61b6b8b85f /src/fallback.cpp
parent5306fce16eec40e31386024b4e936ab94bf7bd8c (diff)
detect and provide fallback for backtrace_symbols_fd
Closes #2615 to fix includes on FreeBSD and provide fallback on Cygwin.
Diffstat (limited to 'src/fallback.cpp')
-rw-r--r--src/fallback.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fallback.cpp b/src/fallback.cpp
index 0f53e1a8..c94a55c7 100644
--- a/src/fallback.cpp
+++ b/src/fallback.cpp
@@ -1228,8 +1228,8 @@ int backtrace(void **buffer, int size)
}
#endif
-#ifndef HAVE_BACKTRACE_SYMBOLS
-char ** backtrace_symbols(void *const *buffer, int size)
+#ifndef HAVE_BACKTRACE_SYMBOLS_FD
+char ** backtrace_symbols_fd(void *const *buffer, int size, int fd)
{
return 0;
}