bootstrapping: fix building V on OpenBSD (#12558)
parent
ff911986e7
commit
70ff00efbb
|
@ -44,7 +44,7 @@ fn print_backtrace_skipping_top_frames_bsd(skipframes int) bool {
|
||||||
$if no_backtrace ? {
|
$if no_backtrace ? {
|
||||||
return false
|
return false
|
||||||
} $else {
|
} $else {
|
||||||
$if macos || freebsd || openbsd || netbsd {
|
$if macos || freebsd || netbsd {
|
||||||
buffer := [100]voidptr{}
|
buffer := [100]voidptr{}
|
||||||
nr_ptrs := C.backtrace(&buffer[0], 100)
|
nr_ptrs := C.backtrace(&buffer[0], 100)
|
||||||
if nr_ptrs < 2 {
|
if nr_ptrs < 2 {
|
||||||
|
|
Loading…
Reference in New Issue