meson: Define HAVE_SYS_UN_H, this was forgotten
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Wed, 31 Oct 2018 11:39:40 +0000 (18:39 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Sat, 8 Jun 2019 09:57:00 +0000 (11:57 +0200)
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
meson.build
src/daemon/meson.build

index a1f97f2..e681cb8 100644 (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 = [
index 130c67d..5f263fb 100644 (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',