mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
build-sys: meson: Add a bunch of missing checks
This commit is contained in:
parent
0f1920f337
commit
27e72814d0
1 changed files with 10 additions and 0 deletions
10
meson.build
10
meson.build
|
|
@ -167,6 +167,10 @@ elif host_machine.system() == 'windows'
|
||||||
# cdata.set('__EXTENSIONS__', 1)
|
# cdata.set('__EXTENSIONS__', 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if cc.has_type('_Bool')
|
||||||
|
cdata.set('HAVE_STD_BOOL', 1)
|
||||||
|
endif
|
||||||
|
|
||||||
if host_machine.cpu_family() == 'x86_64' or cc.sizeof('void *') >= 8
|
if host_machine.cpu_family() == 'x86_64' or cc.sizeof('void *') >= 8
|
||||||
cdata.set('HAVE_FAST_64BIT_OPERATIONS', 1)
|
cdata.set('HAVE_FAST_64BIT_OPERATIONS', 1)
|
||||||
endif
|
endif
|
||||||
|
|
@ -194,7 +198,9 @@ check_headers = [
|
||||||
'regex.h',
|
'regex.h',
|
||||||
'sched.h',
|
'sched.h',
|
||||||
'stdint.h',
|
'stdint.h',
|
||||||
|
'sys/atomic.h',
|
||||||
'sys/capability.h',
|
'sys/capability.h',
|
||||||
|
'sys/conf.h',
|
||||||
'sys/dl.h',
|
'sys/dl.h',
|
||||||
'sys/eventfd.h',
|
'sys/eventfd.h',
|
||||||
'sys/filio.h',
|
'sys/filio.h',
|
||||||
|
|
@ -225,6 +231,10 @@ if cc.has_header('pthread.h')
|
||||||
cdata.set('HAVE_PTHREAD', 1)
|
cdata.set('HAVE_PTHREAD', 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if cc.has_header_symbol('pthread.h', 'PTHREAD_PRIO_INHERIT')
|
||||||
|
cdata.set('HAVE_PTHREAD_PRIO_INHERIT', 1)
|
||||||
|
endif
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
|
|
||||||
check_functions = [
|
check_functions = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue