summaryrefslogtreecommitdiff
path: root/devel/electron5/files/patch-device_gamepad_gamepad__provider.cc
blob: 2554909b1c07632732a0bd5af88eceb022b2f320 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- device/gamepad/gamepad_provider.cc.orig	2019-04-08 08:32:56 UTC
+++ device/gamepad/gamepad_provider.cc
@@ -164,7 +164,7 @@ void GamepadProvider::Initialize(std::unique_ptr<Gamep
     monitor->AddDevicesChangedObserver(this);
 
   polling_thread_.reset(new base::Thread("Gamepad polling thread"));
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || 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::MessageLoop::Type kMessageLoopType = base::MessageLoop::TYPE_IO;