From 7baefc3315e9dc11c8a3a787a3b6c6888c2b590a Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Fri, 19 Aug 2022 10:32:47 +0200 Subject: [PATCH] Fix libnv detection on recent FreeBSD On recent FreeBSD systems it is required to include the sys/nv.h file, otherwise symbols are missing. Reported here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265397 Patch suggested by: Kristof Provost --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index ac6924b0..9b54bc01 100644 --- a/meson.build +++ b/meson.build @@ -495,7 +495,7 @@ have_capsicum = false if want_capsicum if cc.has_function('cap_enter', dependencies : cc.find_library('c')) libnv = cc.find_library('nv', required : require_capsicum) - nvlist_create_found = libnv.found() and cc.has_function('nvlist_create', dependencies : libnv) + nvlist_create_found = libnv.found() and cc.has_function('nvlist_create', dependencies : libnv, prefix : '#include ') if nvlist_create_found dep += libnv have_capsicum = true