mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
s3-waf: correctly handle the libcap dependency when libcap is not installed
This commit is contained in:
parent
fa48325bb6
commit
0077761f7e
@ -149,8 +149,9 @@ main() {
|
||||
headers='sys/stat.h')
|
||||
|
||||
# Check for POSIX capability support
|
||||
conf.CHECK_FUNCS_IN('cap_get_proc', 'cap', headers='sys/capability.h')
|
||||
|
||||
if "HAVE_SYS_CAPABILITY_H" in conf.env:
|
||||
conf.CHECK_FUNCS_IN('cap_get_proc', 'cap')
|
||||
conf.CHECK_CODE('''
|
||||
cap_t cap;
|
||||
cap_value_t vals[1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user