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>main
parent
0287602015
commit
cd77f114ca
|
@ -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…
Reference in New Issue