summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorArun Raghavan <arun@arunraghavan.net>2019-08-15 15:49:30 +0530
committerArun Raghavan <arun@arunraghavan.net>2019-08-15 18:57:13 +0530
commit27e72814d0921c43c31071fa2cbd0e23f4638af5 (patch)
tree9a21004d2a5b27ce70157d99805755b6e02fc8d7 /meson.build
parent0f1920f3379df9bea6e822e2b14ae9d2fe6da48d (diff)
build-sys: meson: Add a bunch of missing checks
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build10
1 files changed, 10 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index f51a6c3ed..b5f42b68a 100644
--- a/meson.build
+++ b/meson.build
@@ -167,6 +167,10 @@ elif host_machine.system() == 'windows'
# cdata.set('__EXTENSIONS__', 1)
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
cdata.set('HAVE_FAST_64BIT_OPERATIONS', 1)
endif
@@ -194,7 +198,9 @@ check_headers = [
'regex.h',
'sched.h',
'stdint.h',
+ 'sys/atomic.h',
'sys/capability.h',
+ 'sys/conf.h',
'sys/dl.h',
'sys/eventfd.h',
'sys/filio.h',
@@ -225,6 +231,10 @@ if cc.has_header('pthread.h')
cdata.set('HAVE_PTHREAD', 1)
endif
+if cc.has_header_symbol('pthread.h', 'PTHREAD_PRIO_INHERIT')
+ cdata.set('HAVE_PTHREAD_PRIO_INHERIT', 1)
+endif
+
# Functions
check_functions = [