summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorMohammed Anas <triallax@tutanota.com>2023-10-30 20:58:07 +0100
committerKamil Konieczny <kamil.konieczny@linux.intel.com>2024-02-14 15:10:11 +0100
commitca55d486b97e3490f1dc331966f724332e80958c (patch)
treec2ce3da1468548fead4e7b6dbf104ed7c439f442 /benchmarks
parent02bd39fe6ff205abf3bf31389c4d2835ec3f9b7b (diff)
benchmarks/gem_exec_tracer.c: Fix musl build
Original patch was added to void-linux: https://github.com/void-linux/void-packages/commit/111918317d06598fe1459dbe139923404f3f4b9d Fixes build error: ../benchmarks/gem_exec_tracer.c:274:1: error: conflicting types for ‘ioctl’; have ‘int(int, long unsigned int, ...)’ 274 | ioctl(int fd, unsigned long request, ...) Bug report with request to split the original patch into some functional changes: Link: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/138 Signed-off-by: Mohammed Anas <triallax@tutanota.com> Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/gem_exec_tracer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/benchmarks/gem_exec_tracer.c b/benchmarks/gem_exec_tracer.c
index 7e86473e4..3156dfc23 100644
--- a/benchmarks/gem_exec_tracer.c
+++ b/benchmarks/gem_exec_tracer.c
@@ -271,7 +271,11 @@ static int is_i915(int fd)
}
int
+#ifdef __GLIBC__
ioctl(int fd, unsigned long request, ...)
+#else
+ioctl(int fd, int request, ...)
+#endif
{
struct trace *t, **p;
va_list args;