aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-ui_gfx_x_xlib__support.cc
blob: 1f642681f5e74e1915e5cfc5c38338e5f4ceba3a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- ui/gfx/x/xlib_support.cc.orig	2022-02-07 13:39:41 UTC
+++ ui/gfx/x/xlib_support.cc
@@ -38,10 +38,18 @@ void InitXlib() {
   if (xlib_loader->loaded())
     return;
 
+#if defined(OS_BSD)
+  CHECK(xlib_loader->Load("libX11.so"));
+#else
   CHECK(xlib_loader->Load("libX11.so.6"));
+#endif
 
   auto* xlib_xcb_loader = GetXlibXcbLoader();
+#if defined(OS_BSD)
+  CHECK(xlib_xcb_loader->Load("libX11-xcb.so"));
+#else
   CHECK(xlib_xcb_loader->Load("libX11-xcb.so.1"));
+#endif
 
   CHECK(xlib_loader->XInitThreads());