qt6-qtbase/qtbase-libglvnd.patch
Jan Grulich 33ae18f25f 6.2.1
2021-10-29 11:10:17 +02:00

17 lines
585 B
Diff

diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake
index 0bf250ea..2d1bb645 100644
--- a/src/gui/configure.cmake
+++ b/src/gui/configure.cmake
@@ -174,9 +174,9 @@ qt_config_compile_test(egl_x11
int main(void)
{
/* BEGIN TEST: */
-Display *dpy = EGL_DEFAULT_DISPLAY;
+Display *dpy = reinterpret_cast<Display *>(EGL_DEFAULT_DISPLAY);
EGLNativeDisplayType egldpy = XOpenDisplay(\"\");
-dpy = egldpy;
+dpy = reinterpret_cast<Display *>(egldpy);
EGLNativeWindowType w = XCreateWindow(dpy, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
XDestroyWindow(dpy, w);
XCloseDisplay(dpy);