summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm_dump.c b/vm_dump.c
index 278c4aa..fd8f9e5 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -585,6 +585,9 @@ bugreport_backtrace(void *arg, VALUE file, int line, VALUE method)
return 0;
}
+#if defined(__FreeBSD__) && defined(__OPTIMIZE__)
+#undef HAVE_BACKTRACE
+#endif
#if HAVE_BACKTRACE
# include <execinfo.h>
#elif defined(_WIN32)