display-hal: fix compile errors with 5.4 kernel
Add uapi/include/display to include search path and add sde_drm.h
to fix compile errors with 5.4 kernel. This change is backward
compatible and is also working in 4.14 kernel.
Change-Id: I47b025301fa53fbd4bc1cceb013db3648b5a61cd
Signed-off-by: Liang Liu <lianliu@codeaurora.org>
diff --git a/libdrmutils/drm_master.cpp b/libdrmutils/drm_master.cpp
old mode 100644
new mode 100755
index f0d14b1..3a8516d
--- a/libdrmutils/drm_master.cpp
+++ b/libdrmutils/drm_master.cpp
@@ -33,6 +33,8 @@
#include <unistd.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
+#include <drm/sde_drm.h>
+
// Intentionally included after xf86 headers so that they in-turn include libdrm version of drm.h
// that doesn't use keyword "virtual" for a variable name. Not doing so leads to the kernel version
// of drm.h being included causing compilation to fail