Browse Source

Fix build without X11 dev headers

tags/1.9.7
falkTX 10 years ago
parent
commit
5e93640bab
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      source/bridges-plugin/CarlaBridgePlugin.cpp

+ 3
- 3
source/bridges-plugin/CarlaBridgePlugin.cpp View File

@@ -25,7 +25,7 @@
# include <signal.h> # include <signal.h>
#endif #endif


#ifdef CARLA_OS_LINUX
#ifdef HAVE_X11
# include <X11/Xlib.h> # include <X11/Xlib.h>
#endif #endif


@@ -478,7 +478,7 @@ int main(int argc, char* argv[])
extraStuff = "true"; extraStuff = "true";
} }


#ifdef CARLA_OS_LINUX
#ifdef HAVE_X11
if (std::getenv("DISPLAY") != nullptr) if (std::getenv("DISPLAY") != nullptr)
XInitThreads(); XInitThreads();
#endif #endif
@@ -516,7 +516,7 @@ int main(int argc, char* argv[])
{ {
if (pluginInfo->hints & CarlaBackend::PLUGIN_HAS_CUSTOM_UI) if (pluginInfo->hints & CarlaBackend::PLUGIN_HAS_CUSTOM_UI)
{ {
#ifdef CARLA_OS_LINUX
#ifdef HAVE_X11
if (std::getenv("DISPLAY") != nullptr) if (std::getenv("DISPLAY") != nullptr)
#endif #endif
carla_show_custom_ui(0, true); carla_show_custom_ui(0, true);


Loading…
Cancel
Save