mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-09 09:48:05 +02:00
tests/nouveau/threaded: adapt ioctl signature
POSIX says ioctl() has the signature (int, int, ...) but glibc has decided to use (int, unsigned long int, ...) instead. Use a #ifdef to adapt the replacement function as appropriate. Signed-off-by: Ross Burton <ross.burton@intel.com> [Taken from https://raw.githubusercontent.com/openembedded/openembedded-core/master/meta/recipes-graphics/drm/libdrm/musl-ioctl.patch] Signed-off-by: Peter Seiderer <ps.report@gmx.net> Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
0287602015
commit
cd77f114ca
1 changed files with 4 additions and 0 deletions
|
|
@ -36,7 +36,11 @@ static int failed;
|
|||
|
||||
static int import_fd;
|
||||
|
||||
#ifdef __GLIBC__
|
||||
int ioctl(int fd, unsigned long request, ...)
|
||||
#else
|
||||
int ioctl(int fd, int request, ...)
|
||||
#endif
|
||||
{
|
||||
va_list va;
|
||||
int ret;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue