intel/perf: use MAJOR_IN_SYSMACROS/MAJOR_IN_MKDEV
authorGreg V <greg@unrelenting.technology>
Sun, 19 May 2019 20:24:45 +0000 (23:24 +0300)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 8 Aug 2019 20:44:33 +0000 (21:44 +0100)
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Fixes: 134e750e16bfc53480e0 ("i965: extract performance query metrics")
src/intel/perf/gen_perf.h

index a3e08d1cb712fc02f08fd0a8cc2cdfad36c68ff4..e33d9b0c915604de2b3dfdb8f8a1ac0e299d3473 100644 (file)
 #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"