blob: 02802f18f9d95055aa3b6a6e3c826061a39c68b5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- device/gamepad/gamepad_provider.cc.orig 2021-05-12 22:05:53 UTC
+++ device/gamepad/gamepad_provider.cc
@@ -150,7 +150,7 @@ void GamepadProvider::Initialize(std::unique_ptr<Gamep
if (!polling_thread_)
polling_thread_ = std::make_unique<base::Thread>("Gamepad polling thread");
-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_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;
|