File 0002-edge-Fix-drm_mode.h-include.patch of Package libxrt

From 9cfda8504018ac12b15853b4224fe0451a277864 Mon Sep 17 00:00:00 2001
From: "Matwey V. Kornilov" <matwey.kornilov@gmail.com>
Date: Tue, 31 Mar 2020 19:16:23 +0000
Subject: [PATCH 2/5] edge: Fix drm_mode.h include

Original commit

    01178203434a ("[Edge] Remove drm.h and drm_mode.h (#2614)")

says that drm_mode.h has to come from libdrm, so change the path
accordingly to fix the build.
---
 src/runtime_src/core/edge/include/zynq_ioctl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/runtime_src/core/edge/include/zynq_ioctl.h b/src/runtime_src/core/edge/include/zynq_ioctl.h
index c152ab06..c3d20c4d 100644
--- a/src/runtime_src/core/edge/include/zynq_ioctl.h
+++ b/src/runtime_src/core/edge/include/zynq_ioctl.h
@@ -74,7 +74,7 @@
 #ifndef __KERNEL__
 #include <stdint.h>
 #include <libdrm/drm.h>
-#include <drm/drm_mode.h>
+#include <libdrm/drm_mode.h>
 #else
 #include <uapi/drm/drm_mode.h>
 #endif /* !__KERNEL__ */
-- 
2.16.4

openSUSE Build Service is sponsored by