io/uring/meson.build: detect liburing with include_type=system

This avoids breakages due to `-Wgnu-anonymous-struct`.
This commit is contained in:
Max Kellermann 2023-09-12 10:20:24 +02:00
parent 32421fed89
commit c994fe4879
1 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,9 @@ if host_machine.system() != 'linux'
subdir_done() subdir_done()
endif endif
liburing = dependency('liburing', required: get_option('io_uring')) liburing = dependency('liburing',
include_type: 'system',
required: get_option('io_uring'))
uring_features.set('HAVE_URING', liburing.found()) uring_features.set('HAVE_URING', liburing.found())
configure_file(output: 'Features.h', configuration: uring_features) configure_file(output: 'Features.h', configuration: uring_features)