$NetBSD: patch-ui_ozone_platform_x11_x11__clipboard__ozone.cc,v 1.2 2026/04/10 17:32:02 kikadf Exp $

* Part of patchset to build chromium on NetBSD
* Based on OpenBSD's chromium patches, and
  pkgsrc's qt5-qtwebengine patches

--- ui/ozone/platform/x11/x11_clipboard_ozone.cc.orig	2026-04-06 16:25:54.000000000 +0000
+++ ui/ozone/platform/x11/x11_clipboard_ozone.cc
@@ -14,7 +14,7 @@
 #include "ui/base/clipboard/clipboard_constants.h"
 #include "ui/base/x/x11_clipboard_helper.h"
 
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
 #include "base/strings/string_view_util.h"
 #include "ui/base/clipboard/clipboard_util_linux.h"
 #endif
@@ -39,7 +39,7 @@ void X11ClipboardOzone::OfferClipboardDa
   for (const auto& item : data_map)
     helper_->InsertMapping(item.first, item.second);
 
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
   auto it = data_map.find(kMimeTypeUriList);
   if (it != data_map.end()) {
     std::string unparsed(base::as_string_view(*it->second));
