compositor-fbdev: fix build without EGL cset #4aa756dc (add libhybris support) added EGL code that is not dependent on --enable-egl. Fix that by making the code conditional. Signed-off-by: "Yann E. MORIN" diff -durN weston-1.3.0.orig/src/compositor-fbdev.c weston-1.3.0/src/compositor-fbdev.c --- weston-1.3.0.orig/src/compositor-fbdev.c 2013-10-10 00:32:31.000000000 +0200 +++ weston-1.3.0/src/compositor-fbdev.c 2013-10-11 23:02:31.172566087 +0200 @@ -921,11 +921,15 @@ if (pixman_renderer_init(&compositor->base) < 0) goto out_launcher; } else { +#ifdef ENABLE_EGL if (gl_renderer_create(&compositor->base, EGL_DEFAULT_DISPLAY, gl_renderer_opaque_attribs, NULL) < 0) { weston_log("gl_renderer_create failed.\n"); goto out_launcher; } +#else /* ENABLE_EGL */ + goto out_launcher; +#endif /* ENABLE_ELG */ } if (fbdev_output_create(compositor, param->device) < 0)