Changeset 75836 in vbox
- Timestamp:
- Nov 30, 2018 10:52:50 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp
r70169 r75836 46 46 #include <iprt/string.h> 47 47 48 #include <sys/utsname.h> 49 48 50 /** Maximum number of supported screens. DRM and X11 both limit this to 32. */ 49 51 /** @todo if this ever changes, dynamically allocate resizeable arrays in the … … 54 56 55 57 #include <X11/Xlibint.h> 58 59 static bool checkRecentLinuxKernel(void) 60 { 61 struct utsname name; 62 63 if (uname(&name)) 64 VBClFatalError(("Failed to get kernel name.\n")); 65 if (strcmp(name.sysname, "Linux")) 66 return false; 67 return (RTStrVersionCompare(name.release, "4.6") >= 0); 68 } 56 69 57 70 struct X11CONTEXT … … 231 244 unsigned cHeads; 232 245 246 if (checkRecentLinuxKernel()) 247 return VINF_SUCCESS; 233 248 x11Connect(&x11Context); 234 249 if (x11Context.pDisplay == NULL)
Note:
See TracChangeset
for help on using the changeset viewer.