egl_dri2: fix wayland_platform when drm_platform is not set
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 28 May 2014 13:36:46 +0000 (14:36 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 29 May 2014 19:01:03 +0000 (20:01 +0100)
commit6638c55838b8f5186166b7855fdaf41e0a015e88
treed4738951163de4bfe4a84441a8397898661fe84e
parentdfd117b8570a69a429e660c069997e78b181ab6d
egl_dri2: fix wayland_platform when drm_platform is not set

The build fails with implicit delaration of drmGetCap (xf86drm.h)
Were we're including the header only when building the DRM_PLATFORM.

Wayland backend can operate without DRM_PLATFORM so replace the
guard, and fold in drmGetCap() usage to silence compiler warnings.

Cc: Chad Versace <chad.versace@linux.intel.com>
Cc: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/egl/drivers/dri2/egl_dri2.c