egl/dri2: move wayland header inclusion where applicable
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 14 Mar 2018 17:31:27 +0000 (17:31 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 16 Mar 2018 13:47:59 +0000 (13:47 +0000)
commit9fa1d822bf0e70ff982aa73fe6ad68d9883b4b0a
tree73b74ec86e1cb733cdea6b9b1e5bdc62f7c5ce1a
parentd091c9c4cf6f872d444d02d50e36aa65b49e95fa
egl/dri2: move wayland header inclusion where applicable

Instead of indirectly pulling the wayland headers everywhere, use
forward declarations and #include only as needed.

Should effectively fix build errors like the following:

make[5]: Entering directory
'/.../src/gallium/state_trackers/omx/tizonia'
   CC       h264dprc.lo
In file included from h264dprc.c:45:0:
.../src/egl/drivers/dri2/egl_dri2.h:47:10: fatal error:
wayland/wayland-egl/wayland-egl-backend.h: No such file or directory
  #include "wayland/wayland-egl/wayland-egl-backend.h"

Cc: Dylan Baker <dylan@pnwbakers.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Eric Engestrom <eric.engestrom@imgtec.com>
Tested-by: Andy Furniss <adf.lists@gmail.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_wayland.c