Fix Build on NetBSD (#16520) ##build

This commit is contained in:
Florian Märkl 2020-04-11 01:52:19 +02:00 committed by GitHub
parent c53f1a30ca
commit 0a2f9dd29e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@
#include <errno.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/user.h>
#include <sys/sysctl.h>
#include <sys/types.h>
#include <sys/wait.h>

View File

@ -85,7 +85,7 @@ r_util_sources = [
]
r_util_deps = [ldl, mth, pth, utl, sdb_dep, zlib_dep, platform_deps]
if host_machine.system().startswith('freebsd')
if host_machine.system().startswith('freebsd') or host_machine.system().startswith('netbsd')
# backtrace_symbols_fd requires -lexecinfo
r_util_deps += [cc.find_library('execinfo')]
endif