1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Merge pull request #1407 from madpilot78/Fix_libnv_detection

Fix libnv detection on recent FreeBSD

(cherry picked from commit f32d0ab51a)
This commit is contained in:
ailin-nemui 2022-08-19 10:42:05 +02:00 committed by Ailin Nemui
parent f51bc42429
commit c01b35b062

View File

@ -492,7 +492,7 @@ have_capsicum = false
if want_capsicum if want_capsicum
if cc.has_function('cap_enter', dependencies : cc.find_library('c')) if cc.has_function('cap_enter', dependencies : cc.find_library('c'))
libnv = cc.find_library('nv', required : require_capsicum) 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 <sys/nv.h>')
if nvlist_create_found if nvlist_create_found
dep += libnv dep += libnv
have_capsicum = true have_capsicum = true