--- device/gamepad/gamepad_provider.cc.orig 2017-06-05 19:03:07 UTC +++ device/gamepad/gamepad_provider.cc @@ -153,7 +153,7 @@ void GamepadProvider::Initialize(std::unique_ptrAddDevicesChangedObserver(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;