io/uring/meson.build: disable io_uring on Android

On Android, the feature is forbidden by a seccomp filter, see

 https://security.googleblog.com/2023/06/learnings-from-kctf-vrps-42-linux.html
This commit is contained in:
Max Kellermann 2023-09-16 22:22:18 +02:00
parent 18000ff499
commit ce2965b5bc
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
uring_features = configuration_data()
if host_machine.system() != 'linux'
if host_machine.system() != 'linux' or is_android
# io_uring is a Linux-only feature; on Android, we also disable it
# because it's forbidden by a seccomp filter
uring_dep = dependency('', required: false)
uring_features.set('HAVE_URING', false)
configure_file(output: 'Features.h', configuration: uring_features)