projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ovsdb-types: Fix bug in ovsdb_base_type_is_ref().
[openvswitch]
/
lib
/
backtrace.c
diff --git
a/lib/backtrace.c
b/lib/backtrace.c
index 282f6b86828b0ba79b393730b5d856ce37e13847..91549db347812b516e2eb4fb27b93c54349deb62 100644
(file)
--- a/
lib/backtrace.c
+++ b/
lib/backtrace.c
@@
-83,6
+83,7
@@
in_stack(void *p)
void
backtrace_capture(struct backtrace *backtrace)
{
+#ifdef __GNUC__
void **frame;
size_t n;
@@
-95,4
+96,7
@@
backtrace_capture(struct backtrace *backtrace)
backtrace->frames[n++] = (uintptr_t) frame[1];
}
backtrace->n_frames = n;
+#else
+ backtrace->n_frames = 0;
+#endif
}