qtbase-libglvnd.patch 585 B

1234567891011121314151617
  1. diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake
  2. index 0bf250ea..2d1bb645 100644
  3. --- a/src/gui/configure.cmake
  4. +++ b/src/gui/configure.cmake
  5. @@ -174,9 +174,9 @@ qt_config_compile_test(egl_x11
  6. int main(void)
  7. {
  8. /* BEGIN TEST: */
  9. -Display *dpy = EGL_DEFAULT_DISPLAY;
  10. +Display *dpy = reinterpret_cast<Display *>(EGL_DEFAULT_DISPLAY);
  11. EGLNativeDisplayType egldpy = XOpenDisplay(\"\");
  12. -dpy = egldpy;
  13. +dpy = reinterpret_cast<Display *>(egldpy);
  14. EGLNativeWindowType w = XCreateWindow(dpy, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
  15. XDestroyWindow(dpy, w);
  16. XCloseDisplay(dpy);