bootstrapping: fix building V on OpenBSD (#12558)

pull/12564/head
pancake 2021-11-24 08:46:46 +01:00 committed by GitHub
parent ff911986e7
commit 70ff00efbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {