meson: Fix HAVE_AF_UNIX, add check for mkfifo function

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-10-22 11:39:56 +07:00 committed by Arun Raghavan
parent 12f0e9232f
commit de44c8885d
2 changed files with 7 additions and 2 deletions

View file

@ -110,7 +110,6 @@ check_headers = [
'sys/resource.h',
'sys/select.h',
'sys/socket.h',
'sys/un.h',
'sys/wait.h',
'valgrind/memcheck.h',
'xlocale.h',
@ -128,6 +127,11 @@ if cc.has_header('pthread.h')
cdata.set('HAVE_PTHREAD', 1)
endif
# FIXME: move this to the above set
if cc.has_header('sys/un.h')
cdata.set('HAVE_AF_UNIX', 1)
endif
# Functions
check_functions = [
@ -144,6 +148,7 @@ check_functions = [
'getuid',
'lstat',
'memfd_create',
'mkfifo',
'mlock',
'nanosleep',
'paccept',

View file

@ -73,7 +73,7 @@ default_conf = configuration_data()
default_conf.merge_from(cdata)
default_conf.set('PA_BINARY', cdata.get_unquoted('PA_BINARY'))
default_conf.set('PA_SOEXT', cdata.get_unquoted('PA_SOEXT'))
# TODO: OS_IS_WIN32, HAVE_MKFIFO, HAVE_AF_UNIX
# TODO: OS_IS_WIN32
default_template_file = configure_file(
input : 'default.pa.in',