aboutsummaryrefslogtreecommitdiff
path: root/devel/electron34/files/patch-device_gamepad_gamepad__provider.cc
blob: 8deb9d0043615f4e60afa71526f152d168069f5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- device/gamepad/gamepad_provider.cc.orig	2025-01-27 17:37:37 UTC
+++ device/gamepad/gamepad_provider.cc
@@ -157,7 +157,7 @@ void GamepadProvider::Initialize(std::unique_ptr<Gamep
 
   if (!polling_thread_)
     polling_thread_ = std::make_unique<base::Thread>("Gamepad polling thread");
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
   // On Linux, the data fetcher needs to watch file descriptors, so the message
   // loop needs to be a libevent loop.
   const base::MessagePumpType kMessageLoopType = base::MessagePumpType::IO;