detect and provide fallback for backtrace_symbols_fd

Closes #2615 to fix includes on FreeBSD and provide fallback on Cygwin.
This commit is contained in:
David Adam
2015-12-17 20:35:34 +08:00
parent 5306fce16e
commit 7143512198
2 changed files with 4 additions and 3 deletions

View File

@@ -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;
}