mirror of
https://git.freebsd.org/ports.git
synced 2025-07-06 20:09:14 -04:00
Approved by: rene (mentor) Security: https://vuxml.freebsd.org/freebsd/310ca30e-a951-11ed-8314-a8a1599412c6.html
11 lines
611 B
C++
11 lines
611 B
C++
--- device/gamepad/gamepad_provider.cc.orig 2023-02-08 09:03:45 UTC
|
|
+++ device/gamepad/gamepad_provider.cc
|
|
@@ -218,7 +218,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;
|