diff --git a/source/bridges-plugin/CarlaBridgePlugin.cpp b/source/bridges-plugin/CarlaBridgePlugin.cpp index 551fa48c7..fbbee2fea 100644 --- a/source/bridges-plugin/CarlaBridgePlugin.cpp +++ b/source/bridges-plugin/CarlaBridgePlugin.cpp @@ -25,7 +25,7 @@ # include #endif -#ifdef CARLA_OS_LINUX +#ifdef HAVE_X11 # include #endif @@ -478,7 +478,7 @@ int main(int argc, char* argv[]) extraStuff = "true"; } -#ifdef CARLA_OS_LINUX +#ifdef HAVE_X11 if (std::getenv("DISPLAY") != nullptr) XInitThreads(); #endif @@ -516,7 +516,7 @@ int main(int argc, char* argv[]) { if (pluginInfo->hints & CarlaBackend::PLUGIN_HAS_CUSTOM_UI) { -#ifdef CARLA_OS_LINUX +#ifdef HAVE_X11 if (std::getenv("DISPLAY") != nullptr) #endif carla_show_custom_ui(0, true);