aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg V <[email protected]>2019-05-19 23:24:45 +0300
committerEric Engestrom <[email protected]>2019-08-08 21:44:33 +0100
commitac1561088d7e8f395a10eab5de3af6576719831a (patch)
tree97569ca57ed8e7ac9ebc12f84ff3fd9d3a5071f2
parent0233372581db739a6996d454d8ef4075e3a147c7 (diff)
intel/perf: use MAJOR_IN_SYSMACROS/MAJOR_IN_MKDEV
Reviewed-by: Eric Engestrom <[email protected]> Fixes: 134e750e16bfc53480e0 ("i965: extract performance query metrics")
-rw-r--r--src/intel/perf/gen_perf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intel/perf/gen_perf.h b/src/intel/perf/gen_perf.h
index a3e08d1cb71..e33d9b0c915 100644
--- a/src/intel/perf/gen_perf.h
+++ b/src/intel/perf/gen_perf.h
@@ -28,7 +28,11 @@
#include <stdint.h>
#include <string.h>
+#if defined(MAJOR_IN_SYSMACROS)
#include <sys/sysmacros.h>
+#elif defined(MAJOR_IN_MKDEV)
+#include <sys/mkdev.h>
+#endif
#include "util/hash_table.h"
#include "compiler/glsl/list.h"