summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorJake Freeland <jake@technologyfriends.net>2022-10-07 16:30:56 -0500
committerKamil Konieczny <kamil.konieczny@linux.intel.com>2022-10-12 15:17:55 +0200
commitca6f5bdd537d26692c4b1ca011b8c4f227d95703 (patch)
treedde1dfb1f1fbb4048b5afaac9cfdbfb9aa559ae6 /benchmarks
parentceab29fd9535e6aeb3611b0cf7ffddf84c494760 (diff)
Restrict sigev_notify_thread_id macro definition to Linux
The `#define sigev_notify_thread_id _sigev_un._tid` macro differs on FreeBSD. This patch uses ifdefs to stop the compiler from overriding FreeBSD's existing definition. Signed-off-by: Jake Freeland <jfree@freebsd.org> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/gem_syslatency.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmarks/gem_syslatency.c b/benchmarks/gem_syslatency.c
index b4011baa5..312c428b7 100644
--- a/benchmarks/gem_syslatency.c
+++ b/benchmarks/gem_syslatency.c
@@ -48,8 +48,7 @@
#include "i915/gem_create.h"
#include "i915/gem_ring.h"
-
-#define sigev_notify_thread_id _sigev_un._tid
+#include "igt_aux.h"
#ifdef __FreeBSD__
#include "igt_freebsd.h"