summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Collins <mark@igalia.com>2024-08-22 18:40:48 +0000
committerMark Collins <mark@igalia.com>2024-08-22 18:45:38 +0000
commitf3f56f41bb97a3876c209d12c2a2a565c326def8 (patch)
tree048868e6e7da58b0c8500162ce55dac22700182b
parent88db6114985ebcfe14f592930d82d01a3d973101 (diff)
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 <mark@igalia.com>
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
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',