meson: Define HAVE_SYS_UN_H, this was forgotten

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-10-31 18:39:40 +07:00 committed by Arun Raghavan
parent 6355071a2d
commit c3e7262219
2 changed files with 2 additions and 5 deletions

View file

@ -141,6 +141,7 @@ check_headers = [
'sys/resource.h',
'sys/select.h',
'sys/socket.h',
'sys/un.h',
'sys/wait.h',
'valgrind/memcheck.h',
'xlocale.h',
@ -158,11 +159,6 @@ 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 = [

View file

@ -73,6 +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'))
default_conf.set10('HAVE_AF_UNIX', cc.has_header('sys/un.h'))
default_template_file = configure_file(
input : 'default.pa.in',