mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 14:00:11 +01:00
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>
This commit is contained in:
parent
88db611498
commit
f3f56f41bb
1 changed files with 4 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue