OpenBSD support.

Special treatment here as backtrace support is optional,
cannot be found via pkg-config and similar neither.
This commit is contained in:
David Carlier
2018-11-25 08:10:26 +00:00
parent 69ca907868
commit ac086b1932
3 changed files with 74 additions and 1 deletions

View File

@ -63,7 +63,8 @@
/* Test for backtrace() */
#if defined(__APPLE__) || (defined(__linux__) && defined(__GLIBC__)) || \
defined(__FreeBSD__) || defined(__DragonFly__)
defined(__FreeBSD__) || (defined(__OpenBSD__) && defined(USE_BACKTRACE))\
|| defined(__DragonFly__)
#define HAVE_BACKTRACE 1
#endif