$OpenBSD: patch-ui_gfx_x_xlib_support_cc,v 1.3 2021/10/29 14:49:43 robert Exp $

Index: ui/gfx/x/xlib_support.cc
--- ui/gfx/x/xlib_support.cc.orig
+++ 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());
 
