backend-headless: fix build issue without gl-renderer
authorStefan Agner <stefan@agner.ch>
Sun, 20 Oct 2019 14:40:07 +0000 (16:40 +0200)
committerPekka Paalanen <pq@iki.fi>
Thu, 24 Oct 2019 09:09:33 +0000 (09:09 +0000)
If the gl-renderer is disabled build fails with:
  ../libweston/backend-headless/headless.c:394:9: error:
  ‘EGL_PLATFORM_SURFACELESS_MESA’ undeclared (first use in this function)

Fix this by including shared/weston-egl-ext.h.

Signed-off-by: Stefan Agner <stefan@agner.ch>
libweston/backend-headless/headless.c

index 95b390a85d1a967be625a56e1b741328398f1800..c98bdc243fb2168a3de5f4a8edba27967b1100b1 100644 (file)
@@ -40,6 +40,7 @@
 #include "linux-explicit-synchronization.h"
 #include "pixman-renderer.h"
 #include "renderer-gl/gl-renderer.h"
+#include "shared/weston-egl-ext.h"
 #include "linux-dmabuf.h"
 #include "presentation-time-server-protocol.h"
 #include <libweston/windowed-output-api.h>