freebsd-ports/net/openvswitch/files/patch-lib-backtrace.c
Edward Tomasz Napierala 7089446455 Open vSwitch is a production quality, multilayer virtual switch licensed
under the open source Apache 2.0 license. It is designed to enable massive
network automation through programmatic extension, while still supporting
standard management interfaces and protocols (e.g. NetFlow, sFlow, RSPAN,
ERSPAN, CLI, LACP, 802.1ag). In addition, it is designed to support
distribution across multiple physical servers similar to VMware's vNetwork
distributed vswitch or Cisco's Nexus 1000V.

WWW:	http://openvswitch.org/

Note that there is ongoing work to update this to more current version.

Feature safe: yes
2011-12-01 20:08:27 +00:00

18 lines
408 B
C

--- lib/backtrace.c.orig 2011-11-01 12:07:55.000000000 +0100
+++ lib/backtrace.c 2011-11-01 12:09:28.000000000 +0100
@@ -83,6 +83,7 @@
void
backtrace_capture(struct backtrace *backtrace)
{
+#ifndef __FreeBSD__
void **frame;
size_t n;
@@ -95,4 +96,7 @@
backtrace->frames[n++] = (uintptr_t) frame[1];
}
backtrace->n_frames = n;
+#else
+ backtrace->n_frames = 0;
+#endif
}