From f3f56f41bb97a3876c209d12c2a2a565c326def8 Mon Sep 17 00:00:00 2001 From: Mark Collins Date: Thu, 22 Aug 2024 18:40:48 +0000 Subject: [PATCH] Disable ioctl signed overload for Bionic libc Bionic libc ships with `ioctl` that has two signatures, one with an unsigned `request` parameter and one with a signed request parameter. This leads to compilation failing due to `__typeof__(ioctl)` being used by DRM which fails to resolve which overload to use, this has been fixed by defining `BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD` on Android. Signed-off-by: Mark Collins --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 7b26d7eb..225f09aa 100644 --- a/meson.build +++ b/meson.build @@ -243,6 +243,10 @@ if target_machine.endian() == 'big' config.set('HAVE_BIG_ENDIAN', 1) endif +if android + config.set('BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD', 1) +endif + config_file = configure_file( configuration : config, output : 'config.h',