summaryrefslogtreecommitdiff
path: root/tests/nouveau/threaded.c
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-06-18 15:07:03 +0100
committerPeter Seiderer <ps.report@gmx.net>2019-11-28 22:01:34 +0100
commitcd77f114ca0073f609fc89d22390152945e73107 (patch)
tree4a89e156967a53388a1a882d16d18d15ccec2c48 /tests/nouveau/threaded.c
parent028760201554b22e0e9faafa81e0dc80b28db777 (diff)
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>
Diffstat (limited to 'tests/nouveau/threaded.c')
-rw-r--r--tests/nouveau/threaded.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/nouveau/threaded.c b/tests/nouveau/threaded.c
index 3669bcd3..e1c27c01 100644
--- a/tests/nouveau/threaded.c
+++ b/tests/nouveau/threaded.c
@@ -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;