There's no need to wrap this in an #ifdef . CEGLNativeTypeX11 should be visible even if HAVE_X11 is not visible. In which case, it should be replaced with stubs.

That's an annoying design, I know, but the result is that we don't have files like these that are full of #ifdefs