Otherwise build will fail, as drm/drm.h is not available.
Cc: Rob Clark robclark@freedesktop.org Signed-off-by: Emil Velikov emil.l.velikov@gmail.com ---
Hello Rob, I'm not entriely sure that this is correct as the libdrm code is splinckled with variations of drm/drm.h drm.h in both quoted and angle bracket form.
I believe that the chosen approach could be used througout libdrm although such a change would be quite evasive and may lead to a broken build.
This is what works for me, and looks approapriate IMHO
--- freedreno/freedreno_priv.h | 2 +- freedreno/msm/msm_drm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/freedreno/freedreno_priv.h b/freedreno/freedreno_priv.h index b10ac90..69256f5 100644 --- a/freedreno/freedreno_priv.h +++ b/freedreno/freedreno_priv.h @@ -48,7 +48,7 @@
#include "freedreno_drmif.h" #include "freedreno_ringbuffer.h" -#include "drm/drm.h" +#include "drm.h"
struct fd_device_funcs { int (*bo_new_handle)(struct fd_device *dev, uint32_t size, diff --git a/freedreno/msm/msm_drm.h b/freedreno/msm/msm_drm.h index d3c6207..090c724 100644 --- a/freedreno/msm/msm_drm.h +++ b/freedreno/msm/msm_drm.h @@ -19,7 +19,7 @@ #define __MSM_DRM_H__
#include <stddef.h> -#include <drm/drm.h> +#include "drm.h"
/* Please note that modifications to all structs defined here are * subject to backwards-compatibility constraints:
dri-devel@lists.freedesktop.org