]> OCCT Git - occt.git/commitdiff
0033868: Configuration - regression in wasm build CR33868
authoroan <oan@opencascade.com>
Mon, 3 Feb 2025 15:47:17 +0000 (15:47 +0000)
committeroan <oan@opencascade.com>
Mon, 3 Feb 2025 15:47:17 +0000 (15:47 +0000)
Quick fix absent definitions

src/OpenGl/OpenGl_GraphicDriver.cxx

index 801080fb89d76ba872c2879c5f14a7b731fa0789..a0ecdd54c9ce430216b27b2ae64af6cd4e7677e0 100644 (file)
@@ -40,10 +40,13 @@ IMPLEMENT_STANDARD_RTTIEXT(OpenGl_GraphicDriver, Graphic3d_GraphicDriver)
   #include <Aspect_NeutralWindow.hxx>
 #endif
 
-#if !defined(_WIN32) && !defined(__ANDROID__) && !defined(__QNX__) && !defined(__EMSCRIPTEN__)     \
+#if !defined(_WIN32) && !defined(__ANDROID__) && !defined(__QNX__)                                 \
   && (!defined(__APPLE__) || defined(HAVE_XLIB))
   #include <X11/Xlib.h> // XOpenDisplay()
-  #include <GL/glx.h>
+  #include <X11/Xutil.h>
+  #if !defined(__EMSCRIPTEN__)
+    #include <GL/glx.h>
+  #endif
 #endif
 
 #if !defined(HAVE_EGL)