meson: switch getpeer* checks to autotools style
Checking for function "getpeereid" : YES
Checking for function "getpeerucred" : NO
[...]
include/meson.build:182:7: ERROR: Argument to "not" is not a boolean.
Fixes: 68c2cfadd6
("meson: Make sure defines are either set to 1 or not defined")
This commit is contained in:
parent
9f8421af63
commit
eceafd4a2d
|
@ -181,7 +181,7 @@ if cc.has_header_symbol('sys/socket.h', 'SCM_RIGHTS')
|
||||||
conf_data.set('XTRANS_SEND_FDS', '1')
|
conf_data.set('XTRANS_SEND_FDS', '1')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if not conf_data.get('HAVE_GETPEEREID') and not conf_data.get('HAVE_GETPEERUCRED')
|
if conf_data.get('HAVE_GETPEEREID') == false and conf_data.get('HAVE_GETPEERUCRED') == false
|
||||||
if not cc.has_header_symbol('sys/socket.h', 'SO_PEERCRED')
|
if not cc.has_header_symbol('sys/socket.h', 'SO_PEERCRED')
|
||||||
conf_data.set('NO_LOCAL_CLIENT_CRED', 1)
|
conf_data.set('NO_LOCAL_CLIENT_CRED', 1)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue