mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
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 <kp@freebsd.org>
This commit is contained in:
parent
58109aeeed
commit
7baefc3315
@ -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 <sys/nv.h>')
|
||||
if nvlist_create_found
|
||||
dep += libnv
|
||||
have_capsicum = true
|
||||
|
Loading…
Reference in New Issue
Block a user