Changeset 48495 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 16, 2013 3:49:56 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r48458 r48495 175 175 # Necessary for the hdd backend enumeration 176 176 VirtualBox_LIBS = $(LIB_DDU) 177 178 if1of ($(KBUILD_TARGET), linux freebsd netbsd openbsd) 179 VirtualBox_LIBS += dl 180 endif 177 181 178 182 # This library is required for multi-monitor support -
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r48137 r48495 46 46 #ifdef Q_WS_X11 47 47 # include <X11/Xlib.h> 48 # include <dlfcn.h> 48 49 #endif 49 50 … … 292 293 } 293 294 295 #ifdef Q_WS_X11 296 /** This is a workaround for a bug on old libX11 versions, fixed in commit 297 * 941f02ede63baa46f93ed8abccebe76fb29c0789 and released in version 1.1. */ 298 Status VBoxXInitThreads(void) 299 { 300 void *pvProcess = dlopen(NULL, RTLD_GLOBAL | RTLD_LAZY); 301 Status rc = 1; 302 if (pvProcess && dlsym(pvProcess, "xcb_connect")) 303 rc = XInitThreads(); 304 if (pvProcess) 305 dlclose(pvProcess); 306 return rc; 307 } 308 #endif 309 294 310 extern "C" DECLEXPORT(int) TrustedMain(int argc, char **argv, char ** /*envp*/) 295 311 { … … 301 317 302 318 #ifdef Q_WS_X11 303 if (! XInitThreads())319 if (!VBoxXInitThreads()) 304 320 return 1; 305 321 #endif … … 543 559 bool fInitSUPLib = false; 544 560 #ifdef Q_WS_X11 545 if (! XInitThreads())561 if (!VBoxXInitThreads()) 546 562 return 1; 547 563 #endif
Note:
See TracChangeset
for help on using the changeset viewer.