From 75afece22ea8223a0a997f1d8106623deaf34d85 Mon Sep 17 00:00:00 2001 From: oan Date: Mon, 3 Feb 2025 15:47:17 +0000 Subject: [PATCH] 0033868: Configuration - regression in wasm build Quick fix absent definitions --- src/OpenGl/OpenGl_GraphicDriver.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/OpenGl/OpenGl_GraphicDriver.cxx b/src/OpenGl/OpenGl_GraphicDriver.cxx index 801080fb89..a0ecdd54c9 100644 --- a/src/OpenGl/OpenGl_GraphicDriver.cxx +++ b/src/OpenGl/OpenGl_GraphicDriver.cxx @@ -40,10 +40,13 @@ IMPLEMENT_STANDARD_RTTIEXT(OpenGl_GraphicDriver, Graphic3d_GraphicDriver) #include #endif -#if !defined(_WIN32) && !defined(__ANDROID__) && !defined(__QNX__) && !defined(__EMSCRIPTEN__) \ +#if !defined(_WIN32) && !defined(__ANDROID__) && !defined(__QNX__) \ && (!defined(__APPLE__) || defined(HAVE_XLIB)) #include // XOpenDisplay() - #include + #include + #if !defined(__EMSCRIPTEN__) + #include + #endif #endif #if !defined(HAVE_EGL)